Part Number Hot Search : 
12007 HIP2104 74LCX374 Z5241B BAS16 AS2535T UPD17 VTB8440B
Product Description
Full Text Search
 

To Download M16C5M Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  m16c/5m group, m16c/57 group renesas mcu rej03b0267-0101 rev.1.01 jul 23, 2010 datasheet rej03b0267-0101 rev.1.01 page 1 of 156 jul 23, 2010 1. overview 1.1 features the m16c/5m and m16c/57 group?s microcomputers (mcu s) are single-chip control units that utilize high-performance silicon gate cmos technology wi th the m16c/60 series cpu core. the m16c/5m group and m16c/57 group are available in 64-pin, 80-pin, and 100-pin plastic molded lqfp packages. the mcus employ sophisticated instructions for a high level of efficiency and they are capable of executing instructions at high speed. the mcus have the can module (m16c/5m group) and lin module, which makes them suitable for automotive control and factory automation lan system s. in addition, the cpu core boasts a multiplier and dmac for high-speed operation processing which ma kes it adequate for controlling office equipment, home appliances, and industrial equipment. the m16c/5m and m16c/57 group?s mcus are a high-end microcontroller series in the m16c/5l and m16c/56 group, featuring a single architecture as well as co mpatible pin assignments and peripheral functions. they have an on-chip e 2 prom emulation data flash (e 2 dataflash) which is a data flash with serial e 2 prom. 1.1.1 applications automotive, car audio, factory automation lan system, etc. www.datasheet.in
rej03b0267-0101 rev.1.01 page 2 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview 1.2 specifications table 1.1 to table 1.6 list specifications of the m16c/5m group, m16c/57 group. table 1.1 specifications (100-pin package) (1/2) item function specification cpu central processing unit m16c/60 series cpu core (multiplier: 16 16  32 bits, multiply-accumulate unit: 16 16 + 32  32 bits)) ? basic instructions: 91 ? minimum instruction execution time: ? operating mode: single-chip mode memory rom, ram, data flash, e 2 dataflash see table 1.7 to table 1.10. voltage detection voltage detector ? 2 voltage detect points clock clock generator ? 5 circuits (main clock, sub clock, pll frequency synthesi zer, 125 khz on- chip oscillator, 40 mhz on-chip oscillator) ? oscillation stop detector: main clo ck oscillator stop/restart detection ? frequency divide circuit: divide-by-1, 2, 4, 8, or 16 selectable ? low-power consumption modes: wait mode, stop mode ? real-time clock i/o ports programmable i/o ports ? 70 cmos inputs/outputs, a pull-up resistor selectable ? n-channel open drain ports: 1 interrupts ? interrupt vectors: 70 ? external interrupt inputs: 13 ( nmi , int 8, key input 4) ? interrupt priority levels: 7 watchdog timer ? 15 bits 1 (with prescaler) ? automatic reset start function selectable ? dedicated 125 khz on-chip oscillator for the watchdog timer contained dma dmac ? 4 channels, cycle-steal transfer mode ? trigger sources: 50 ? transfer modes: 2 (single transfer, repeat transfer) timers timer a 16-bit timer 5 timer mode, event counter mode, one-shot timer mode, pulse-width modulation (pwm) mode two-phase pulse signal processing in event counter mode (two-phase encoder input) 3 programmable output mode 3 timer b 16-bit timer 6 timer mode, event counter mode, pu lse frequency measurement mode, pulse-width measurement mode timer function for three- phase motor control three-phase motor control timer 1 (timers a1, a2, a4, and b2 used) on-chip dead time timer timer s (input capture/ output compare) ? 16-bit timer 1 (base timer) ? i/o: 8 channels task monitoring timer 16-bit timer 1 channel real-time clock count: seconds, minutes, hours, weeks serial interface uart0 to uart4 4 channels (uart, clock synchronous serial interface) 1 channels (uart, clock synchronous serial interface, i 2 c-bus, iebus) multi-master i 2 c-bus interface 1 channel a/d converter 10-bit resolution 26 channels d/a converter 8-bit resolution 1 channel www.datasheet.in
rej03b0267-0101 rev.1.01 page 3 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. refer to table 1.7 ?m16c/5m group product list (j-version)? to table 1.10 ?m16c/57 group product list (k-version) for operating temperature, can module, and e 2 dataflash. table 1.2 specifications (100-pin package) (2/2) item function specification crc calculator ? 1 circuit ? crc-ccitt (x 16 + x 12 + x 5 + 1), crc-16 (x 16 + x 15 + x 2 + 1) compliant ? msb/lsb selectable serial bus interface 1 channel ? clock synchronous serial communication mode ? 4-wire bus communication mode ? programmable character length: 8 to 16 bits lin module 1 channel can module 32-slot message buffer 2 channels or 1 channel (m16c/5m group) (1) flash memory ? programming and erasure supply voltage: 3.0 to 5.5 v ? programming and erasure endurance: 1,000 times (program rom 1, program rom 2)/10,000 times (data flash) ? program security: rom code protect, id code check e 2 dataflash programming and erasure endurance: 100,000 (1) debug functions on-board flash rewrite function, address match 4 operating frequency/power supply voltage 32 mhz / 3.0 to 5.5 v current consumption described in 31. ?electrical characteristics? operating temperature -40c to 85c -40c to 125c (1) package 100-pin plastic mold lqfp: plqp0100kb-a (previous package code: 100p6q-a) www.datasheet.in
rej03b0267-0101 rev.1.01 page 4 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview table 1.3 specifications (80-pin package) (1/2) item function specification cpu central processing unit m16c/60 series cpu core (multiplier: 16 16  32 bits, multiply-accumulate unit: 16 16 + 32  32 bits)) ? basic instructions: 91 ? minimum instruction execution time: ? operating mode: single-chip mode memory rom, ram, data flash, e 2 dataflash see table 1.7 to table 1.10. voltage detection voltage detector ? 2 voltage detect points clock clock generator ? 5 circuits (main clock, sub clock, pll frequency synthesi zer, 125 khz on- chip oscillator, 40 mhz on-chip oscillator) ? oscillation stop detector: main clo ck oscillator stop/restart detection ? frequency divide circuit: divide-by-1, 2, 4, 8, or 16 selectable ? low-power consumption modes: wait mode, stop mode ? real-time clock i/o ports programmable i/o ports ? 70 cmos inputs/outputs, a pull-up resistor selectable ? n-channel open drain ports: 1 interrupts ? interrupt vectors: 70 ? external interrupt inputs: 11 ( nmi , int 6, key input 4) ? interrupt priority levels: 7 watchdog timer ? 15 bits 1 (with prescaler) ? automatic reset start function selectable ? dedicated 125 khz on-chip oscillator for the watchdog timer contained dma dmac ? 4 channels, cycle-steal transfer mode ? trigger sources: 43 ? transfer modes: 2 (single transfer, repeat transfer) timers timer a 16-bit timer 5 timer mode, event counter mode, one-shot timer mode, pulse-width modulation (pwm) mode two-phase pulse signal processing in event counter mode (two-phase encoder input) 3 programmable output mode 3 timer b 16-bit timer 3 timer mode, event counter mode, pu lse frequency measurement mode, pulse-width measurement mode timer function for three- phase motor control three-phase motor control timer 1 (timers a1, a2, a4, and b2 used) on-chip dead time timer timer s (input capture/ output compare) ? 16-bit timer 1 (base timer) ? i/o: 8 channels task monitoring timer 16-bit timer 1 channel real-time clock count: seconds, minutes, hours, weeks serial interface uart0 to uart4 4 channels (uart, clock synchronous serial interface) 1 channels (uart, clock synchronous serial interface, i 2 c-bus, iebus) multi-master i 2 c-bus interface 1 channel a/d converter 10-bit resolution 27 channels d/a converter 8-bit resolution 1 channel www.datasheet.in
rej03b0267-0101 rev.1.01 page 5 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. refer to table 1.7 ?m16c/5m group product list (j-version)? to table 1.10 ?m16c/57 group product list (k-version) for operating temperature, can module, and e 2 dataflash. table 1.4 specifications (80-pin package) (2/2) item function specification crc calculator ? 1 circuit ? crc-ccitt (x 16 + x 12 + x 5 + 1), crc-16 (x 16 + x 15 + x 2 + 1) compliant ? msb/lsb selectable serial bus interface 1 channel ? clock synchronous serial communication mode ? 4-wire bus communication mode ? programmable character length: 8 to 16 bits lin module 1 channel can module 32-slot message buffer 2 channels or 1 channel (m16c/5m group) (1) flash memory ? programming and erasure supply voltage: 3.0 to 5.5 v ? programming and erasure endurance: 1,000 times (program rom 1, program rom 2)/10,000 times (data flash) ? program security: rom code protect, id code check e 2 dataflash programming and erasure endurance: 100,000 (1) debug functions on-board flash rewrite function, address match 4 operating frequency/power supply voltage 32 mhz / 3.0 to 5.5 v current consumption described in 31. ?electrical characteristics? operating temperature -40c to 85c -40c to 125c (1) package 80-pin plastic mold lqfp: plqp0080 kb-a (previous package code: 80p6q-a) www.datasheet.in
rej03b0267-0101 rev.1.01 page 6 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview table 1.5 specifications (64-pin package) (1/2) item function specification cpu central processing unit m16c/60 series cpu core (multiplier: 16 16  32 bits, multiply-accumulate unit: 16 16 + 32  32 bits)) ? basic instructions: 91 ? minimum instruction execution time: ? operating mode: single-chip mode memory rom, ram, data flash, e 2 dataflash see table 1.7 to table 1.10. voltage detection voltage detector ? 2 voltage detect points clock clock generator ? 5 circuits (main clock, sub clock, pll frequency synthesi zer, 125 khz on- chip oscillator, 40 mhz on-chip oscillator) ? oscillation stop detector: main clo ck oscillator stop/restart detection ? frequency divide circuit: divide-by-1, 2, 4, 8, or 16 selectable ? low-power consumption modes: wait mode, stop mode ? real-time clock i/o ports programmable i/o ports ? 54 cmos inputs/outputs, a pull-up resistor selectable ? n-channel open drain ports: 1 interrupts ? interrupt vectors: 70 ? external interrupt inputs: 11 ( nmi , int 6, key input 4) ? interrupt priority levels: 7 watchdog timer ? 15 bits 1 (with prescaler) ? automatic reset start function selectable ? dedicated 125 khz on-chip oscillator for the watchdog timer contained dma dmac ? 4 channels, cycle-steal transfer mode ? trigger sources: 41 ? transfer modes: 2 (single transfer, repeat transfer) timers timer a 16-bit timer 5 timer mode, event counter mode, one-shot timer mode, pulse-width modulation (pwm) mode two-phase pulse signal processing in event counter mode (two-phase encoder input) 3 programmable output mode 3 timer b 16-bit timer 3 timer mode, event counter mode, pu lse frequency measurement mode, pulse-width measurement mode timer function for three- phase motor control three-phase motor control timer 1 (timers a1, a2, a4, and b2 used) on-chip dead time timer timer s (input capture/ output compare) ? 16-bit timer 1 (base timer) ? i/o: 8 channels task monitoring timer 16-bit timer 1 channel real-time clock count: seconds, minutes, hours, weeks serial interface uart0 to uart3 3 channels (uart, clock synchronous serial interface) 1 channels (uart, clock synchronous serial interface, i 2 c-bus, iebus) multi-master i 2 c-bus interface 1 channel a/d converter 10-bit resolution 16 channels d/a converter 8-bit resolution 1 channel www.datasheet.in
rej03b0267-0101 rev.1.01 page 7 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. refer to table 1.7 ?m16c/5m group product list (j-version)? to table 1.10 ?m16c/57 group product list (k-version) for operating temperature, can module, and e 2 dataflash. table 1.6 specifications (64-pin package) (2/2) item function specification crc calculator ? 1 circuit ? crc-ccitt (x 16 + x 12 + x 5 + 1), crc-16 (x 16 + x 15 + x 2 + 1) compliant ? msb/lsb selectable serial bus interface 1 channel ? clock synchronous serial communication mode ? 4-wire bus communication mode ? programmable character length: 8 to 16 bits lin module 1 channel can module 32-slot message buffer 2 channels or 1 channel (m16c/5m group) (1) flash memory ? programming and erasure supply voltage: 3.0 to 5.5 v ? programming and erasure endurance: 1,000 times (program rom 1, program rom 2)/10,000 times (data flash) ? program security: rom code protect, id code check e 2 dataflash programming and erasure endurance: 100,000 (1) debug functions on-board flash rewrite function, address match 4 operating frequency/power supply voltage 32 mhz / 3.0 to 5.5 v current consumption described in 31. ?electrical characteristics? operating temperature -40c to 85c -40c to 125c (1) package 64-pin plastic mold lqfp: plqp0064 kb-a (previous package code: 64p6q-a) www.datasheet.in
rej03b0267-0101 rev.1.01 page 8 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview 1.3 product list table 1.7 to table 1.8 list product informations. figure 1.1 shows part numbers, memory sizes, and packages. figure 1.2 shows marking drawing (top view). table 1.7 m16c/5m group product list (j-version) as of may. 2010 part number rom capacity ram capacity can package name remarks program rom 1 program rom 2 data flash e 2 dataflash r5f35m23jfe (p) 96 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 8 kbytes 1 channel plqp0080kb-a operating temperature -40c to 85c r5f35m33jff (p) plqp0064kb-a r5f35m73jfe (p) ?? plqp0080kb-a r5f35m83jff (p) plqp0064kb-a r5f35m16jfb (p) 128 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 12 kbytes plqp0100kb-a r5f35m26jfe (p) plqp0080kb-a r5f35m36jff (p) plqp0064kb-a r5f35m66jfb (p) ?? plqp0100kb-a r5f35m76jfe (p) plqp0080kb-a r5f35m86jff (p) plqp0064kb-a r5f35m1ejfb (p) 256 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 20 kbytes plqp0100kb-a r5f35m2ejfe (p) plqp0080kb-a r5f35m3ejff (p) plqp0064kb-a r5f35m6ejfb (p) ?? plqp0100kb-a r5f35m7ejfe (p) plqp0080kb-a r5f35m8ejff (p) plqp0064kb-a r5f35mb3jfe (p) 96 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 8 kbytes 2 channels plqp0080kb-a r5f35mc3jff (p) plqp0064kb-a r5f35me3jfe (p) ?? plqp0080kb-a r5f35mf3jff (p) plqp0064kb-a r5f35ma6jfb (p) 128 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 12 kbytes plqp0100kb-a r5f35mb6jfe (p) plqp0080kb-a r5f35mc6jff (p) plqp0064kb-a r5f35md6jfb (p) ?? plqp0100kb-a r5f35me6jfe (p) plqp0080kb-a r5f35mf6jff (p) plqp0064kb-a r5f35maejfb (d) 256 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 20 kbytes plqp0100kb-a r5f35mbejfe (d) plqp0080kb-a r5f35mcejff (d) plqp0064kb-a r5f35mdejfb (p) ?? plqp0100kb-a r5f35meejfe (p) plqp0080kb-a r5f35mfejff (p) plqp0064kb-a (d): under development (p): under planning the old package names are as follows: plqp00100kb-a: 100p6q-a plqp0080kb-a: 80p6q-a plqp0064kb-a: 64p6q-a www.datasheet.in
rej03b0267-0101 rev.1.01 page 9 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview table 1.8 m6c/5m group product list (k-version) as of may. 2010 part number rom capacity ram capacity can package name remarks program rom 1 program rom 2 data flash e 2 dataflash r5f35m23kfe (p) 96 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 8 kbytes 1 channel plqp0080kb-a operating tem- perature -40c to 125c r5f35m33kff (p) plqp0064kb-a r5f35m73kfe (p) ?? plqp0080kb-a r5f35m83kff (p) plqp0064kb-a r5f35m16kfb (p) 128 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 12 kbytes plqp0100kb-a r5f35m26kfe (p) plqp0080kb-a r5f35m36kff (p) plqp0064kb-a r5f35m66kfb (p) ?? plqp0100kb-a r5f35m76kfe (p) plqp0080kb-a r5f35m86kff (p) plqp0064kb-a r5f35m1ekfb (p) 256 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 20 kbytes plqp0100kb-a r5f35m2ekfe (p) plqp0080kb-a r5f35m3ekff (p) plqp0064kb-a r5f35m6ekfb (p) ?? plqp0100kb-a r5f35m7ekfe (p) plqp0080kb-a r5f35m8ekff (p) plqp0064kb-a r5f35mb3kfe (p) 96 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 8 kbytes 2 channels plqp0080kb-a r5f35mc3kff (p) plqp0064kb-a r5f35me3kfe (p) ?? plqp0080kb-a r5f35mf3kff (p) plqp0064kb-a r5f35ma6kfb (p) 128 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 12 kbytes plqp0100kb-a r5f35mb6kfe (p) plqp0080kb-a r5f35mc6kff (p) plqp0064kb-a r5f35md6kfb (p) ?? plqp0100kb-a r5f35me6kfe (p) plqp0080kb-a r5f35mf6kff (p) plqp0064kb-a r5f35maekfb (p) 256 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 20 kbytes plqp0100kb-a r5f35mbekfe (p) plqp0080kb-a r5f35mcekff (p) plqp0064kb-a r5f35mdekfb (p) ?? plqp0100kb-a r5f35meekfe (p) plqp0080kb-a r5f35mfekff (p) plqp0064kb-a (d): under development (p): under planning the old package names are as follows: plqp00100kb-a: 100p6q-a plqp0080kb-a: 80p6q-a plqp0064kb-a: 64p6q-a www.datasheet.in
rej03b0267-0101 rev.1.01 page 10 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview table 1.9 m16c/57 group product list (j-version) as of may. 2010 part number rom capacity ram capacity can package name remarks program rom 1 program rom 2 data flash e 2 dataflash r5f35723jfe (p) 96 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 8 kbytes n/a plqp0080kb-a operating temperature -40c to 85c r5f35733jff (p) plqp0064kb-a r5f35773jfe (p) ?? plqp0080kb-a r5f35783jff (p) plqp0064kb-a r5f35716jfb (p) 128 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 12 kbytes plqp0100kb-a r5f35726jfe (p) plqp0080kb-a r5f35736jff (p) plqp0064kb-a r5f35766jfb (p) ?? plqp0100kb-a r5f35776jfe (p) plqp0080kb-a r5f35786jff (p) plqp0064kb-a r5f3571ejfb (p) 256 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 20 kbytes plqp0100kb-a r5f3572ejfe (p) plqp0080kb-a r5f3573ejff (p) plqp0064kb-a r5f3576ejfb (p) ?? plqp0100kb-a r5f3577ejfe (p) plqp0080kb-a r5f3578ejff (p) plqp0064kb-a (d): under development (p): under planning the old package names are as follows: plqp00100kb-a: 100p6q-a plqp0080kb-a: 80p6q-a plqp0064kb-a: 64p6q-a table 1.10 m16c/57 group product list (k-version) as of may. 2010 part number rom capacity ram capacity can package name remarks program rom 1 program rom 2 data flash e 2 dataflash r5f35723kfe (p) 96 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 8 kbytes n/a plqp0080kb-a operating temperature -40c to 125c r5f35733kff (p) plqp0064kb-a r5f35773kfe (p) ?? plqp0080kb-a r5f35783kff (p) plqp0064kb-a r5f35716kfb (p) 128 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 12 kbytes plqp0100kb-a r5f35726kfe (p) plqp0080kb-a r5f35736kff (p) plqp0064kb-a r5f35766kfb (p) ?? plqp0100kb-a r5f35776kfe (p) plqp0080kb-a r5f35786kff (p) plqp0064kb-a r5f3571ekfb (p) 256 kbytes 16 kbytes 4 kbytes 2 blocks 4 kbytes 20 kbytes plqp0100kb-a r5f3572ekfe (p) plqp0080kb-a r5f3573ekff (p) plqp0064kb-a r5f3576ekfb (p) ?? plqp0100kb-a r5f3577ekfe (p) plqp0080kb-a r5f3578ekff (p) plqp0064kb-a (d): under development (p): under planning the old package names are as follows: plqp00100kb-a: 100p6q-a plqp0080kb-a: 80p6q-a plqp0064kb-a: 64p6q-a www.datasheet.in
rej03b0267-0101 rev.1.01 page 11 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview figure 1.1 part number, memory size, and package figure 1.2 marking diagram of flash memory version (top view) mcu part no. r 5 f 3 5m 2 e j fe package type fb: plqp0100kb-a (100p6q-a) fe: plqp0080kb-a (80p6q-a) ff: plqp0064kb-a (64p6q-a) property code j: operating temperature -40c to 85c k: operating temperature -40c to 125c memory type f: flash memory group name 5m: m16c/5m group, 57: m16c/57 group 16-bit mcu pin / can module / e 2 data flash capacity 1: 100 pins / 1 channel / 4 kbytes 2: 80 pins / 1 channel / 4 kbytes 3: 64 pins / 1 channel / 4 kbytes 6: 100 pins / 1 channel / ? 7: 80 pins / 1 channel / ? 8: 64 pins / 1 channel / ? a: 100 pins / 2 channels / 4 kbytes b: 80 pins / 2 channels / 4 kbytes c: 64 pins / 2 channels / 4 kbytes d: 100 pins / 2 channels / ? e: 80 pins / 2 channels / ? f: 64 pins / 2 channels / ? memory capacity program rom 1/ram 3: 96 kbytes/8 kbytes 6: 128 kbytes/12 kbytes e: 256 kbytes/20 kbytes renesas mcu renesas semiconductor 57 group has no can module part number seven digit date code m 1 6 c r 5 f 3 5 m 2 e j f e x x x x x x x part number seven digit date code m 1 6 c r 5 f 3 5 m 2 e j f e x x x x x x x (see figure 1.1 ?part number, memory size, and package?.) www.datasheet.in
rej03b0267-0101 rev.1.01 page 12 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview 1.4 block diagrams figure 1.3 to figure 1.5 show a block di agram of m16c/5m group and m16c/57 group. figure 1.3 100-pin block diagram port p0 port p1 port p2 port p3 8 8 8 8 port p6 port p8 port p9 port p10 8 8 8 8 peripherals timer (16-bit) output (timer a): 5 input (timer b): 6 three-phase motor control circuit timer s (input capture/output compare) time measurement: 8 channels waveform generating: 8 channels a/d converter (10-bit x 26 channel) uart/clock synchronous serial interface (5 channels) multi-master i 2 c-bus (1 channel) clock generator xin-xout xcin-xcout 40 mhz on-chip oscillator 125 khz on-chip oscillator pll frequency synthesizer can module (32-slot message buffer, 2 or 1 channel) (m16c/5m group only) (1) watchdog timer (15 bits, with the dedicated 125 khz on-chip oscillator for the watchdog timer) crc calculator (ccitt, crc-16) dmac (4 channels) m16c/60 series cpu core r3 fb sb intb usp isp pc flg r0h r0l r1h r1l r2 r3 a0 a1 fb memory rom (1) ram (1) multiplier note: 1. the rom size, ram size, number of cha nnels for the can module, and whether the e 2 dataflash is provided or not depend on the mcu type. port p7 8 i/o ports task monitoring timer (1 channel) real-time clock lin module (1 channel) e 2 dataflash (1) d/a converter (8-bit x 1 circuit) serial bus interface (1 channel) port p4 port p5 8 8 power-on reset voltage detector on-chip debugger www.datasheet.in
rej03b0267-0101 rev.1.01 page 13 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview figure 1.4 80-pin block diagram port p0 port p1 port p2 port p3 8 8 8 8 port p6 port p8 port p9 port p10 8 8 7 8 peripherals timer (16-bit) output (timer a): 5 input (timer b): 3 three-phase motor control circuit timer s (input capture/output compare) time measurement: 8 channels waveform generating: 8 channels a/d converter (10-bit x 27 channel) uart/clock synchronous serial interface (5 channels) multi-master i 2 c-bus (1 channel) clock generator xin-xout xcin-xcout 40 mhz on-chip oscillator 125 khz on-chip oscillator pll frequency synthesizer can module (32-slot message buffer, 2 or 1 channel) (m16c/5m group only) (1) watchdog timer (15 bits, with the dedicated 125 khz on-chip oscillator for the watchdog timer) crc calculator (ccitt, crc-16) dmac (4 channels) m16c/60 series cpu core r3 fb sb intb usp isp pc flg r0h r0l r1h r1l r2 r3 a0 a1 fb memory rom (1) ram (1) multiplier port p7 8 i/o ports task monitoring timer (1 channel) real-time clock lin module (1 channel) e 2 dataflash (1) d/a converter (8-bit x 1 circuit) serial bus interface (1 channel) power-on reset voltage detector on-chip debugger note: 1. the rom size, ram size, number of channels for the can module, and whether the e 2 dataflash is provided or not depend on the mcu type. www.datasheet.in
rej03b0267-0101 rev.1.01 page 14 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview figure 1.5 64-pin block diagram port p0 port p1 port p2 port p3 4 3 8 4 port p6 port p8 port p9 port p10 8 8 4 8 peripherals timer (16-bit) output (timer a): 5 input (timer b): 3 three-phase motor control circuit timer s (input capture/output compare) time measurement: 8 channels waveform generating: 8 channels a/d converter (10-bit x 16 channels) uart/clock synchronous serial interface (4 channels) multi-master i 2 c-bus (1 channel) clock generator xin-xout xcin-xcout 40 mhz on-chip oscillator 125 khz on-chip oscillator pll frequency synthesizer can module (32-slot message buffer, 2 or 1 channel) (m16c/5m group only) (1) watchdog timer (15 bits, the dedicated 125 khz on-chip oscillator for the watchdog timer) crc calculator (ccitt, crc-16) dmac(4 channels) m16c/60 series cpu core r3 fb sb intb usp isp pc flg r0h r0l r1h r1l r2 r3 a0 a1 fb memory rom (1) ram (1) multiplier port p7 8 i/o ports task monitoring timer (1 channel) real-time clock serial bus interface (1 channel) lin module (1 channel) e 2 dataflash (1) d/a converter (8-bit x 1 circuit) power-on reset voltage detector on-chip debugger note: 1. the rom size, ram size, number of ch annels for the can module, and whether the e 2 dataflash is provided or not depend on the mcu type. www.datasheet.in
rej03b0267-0101 rev.1.01 page 15 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview 1.5 pin assignments figure 1.6 shows the pin assignments for the 100-pin package, figure 1.7 shows the pin assignments for the 80-pin package, and figure 1.8 shows the pin assignments for the 64-pin package. figure 1.6 pin assignments for 100-pin package (top view) set bits pacr2 to pacr0 in the pacr register to 100 b before signals are input or output to individual pins after reset. when the pacr register is not set, si gnals are not input or output for some of the pins. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 1 00 p0_0 / an0_0 p0_1 / an0_1 p0_2 / an0_2 p0_3 / an0_3 p0_4 / an0_4 p0_5 / an0_5 p0_6 / an0_6 p0_7 / an0_7 p1_0 / an2_0 p1_1 / an2_1 p1_2 / an2_2 vref avss avcc p10_0 / an_0 p10_1 / an_1 p10_2 / an_2 p10_3 / an_3 p9_5 / clk4 / crx0 (1) / an2_5 p9_6 / txd4 / ctx0 (1) / an2_6 p9_7 / rxd4 / an2_7 p10_7 / an_7 / ki3 p10_6 / an_6 / ki2 p10_5 / an_5 / ki1 p10_4 / an_4 / ki0 p1_3 / an2_3 p1_4 p3_1 / rxd3 / ssi0 p3_2 / txd3 / sso0 p3_3 / cts3 / rts3 / scs0 p3_4 p3_5 p3_6 p3_7 p4_0 p4_1 vcc vss p4_2 p4_3 p5_6 p5_5 p5_4 p5_3 p5_2 p5_7 p6_3 / txd0 p6_5 / clk1 p6_6 / rxd1 p6_7 / txd1 p6_1 / clk0 p6_2 / rxd0 p6_0 / rtcout / cts0 / rts0 p6_4 / cts1 / rts1 p5_0 p5_1 p7_2 / clk2 / ta1out / v / rxd1 p7_1 / rxd2 / scl2 / clk1 / ta0in / tb5in p7_0 / txd2 / sda2 / cts1 / rts1 / ta0out vcc xin xout vss reset cnvss p8_7 / xcin p8_6 / xcout nc p7_4 / ta2out / w / lin0out p9_3/da0/tb3in p9_4 / tb4in p9_1 / tb1in / an3_1 p9_2 / tb2in / an3_2 p8_2 / int0 p8_3 / int1 p8_5 / nmi / sd p9_0 / tb0in / clkout / an3_0 p8_4 / int2 / zp p7_5 / ta2in / w / lin0in p7_3 / cts2 / rts2 / ta1in / v /txd1 p7_6 / ta3out / ctx1 (1) p7_7 / ta3in / crx1 (1) p8_0 / ta4out / u / tsuda p8_1 / ta4in / u / tsudb p4_5 p4_4 p3_0 / clk3 / ssck0 p2_0 / outc1_0 / inpc1_0 / sdamm p2_1 / outc1_1 / inpc1_1 / sclmm p2_2 / outc1_2 / inpc1_2 p2_3 / / outc1_3 / inpc1_3 p2_4 / int6 / outc1_4 / inpc1_4 p2_5 / int7 / outc1_5 / inpc1_5 p2_6 / outc1_6 / inpc1_6 p2_7 / outc1_7 / inpc1_7 p1_5 / int3 / idv / adtrg p1_6 / int4 / idw p1_7 / int5 / idu / inpc1_7 p4_6 p4_7 note: 1. pins ctx0, crx0, ctx1, and crx1 are only available in the m16c/5m group. plqp0100kb-a (100p6q-a) (top view) m16c/5m group m16c/57 group www.datasheet.in
rej03b0267-0101 rev.1.01 page 16 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. there are pins ctx1 and crx1 only in the m16c/5m group. table 1.11 pin names, 100-pin package(1/2) pin no. control pin port interrupt pin timer pin timer s pin uart/can/lin/serial bus interface pin multi- master i 2 c-bus pin analog pin 1 p9_4 tb4in 2 p9_3 tb3in da0 3 p9_2 tb2in an3_2 4 p9_1 tb1in an3_1 5 clkout p9_0 tb0in an3_0 6nc 7cnvss 8 xcin p8_7 9 xcout p8_6 10 reset 11 xout 12 vss 13 xin 14 vcc 15 p8_5 nmi sd 16 p8_4 int2 zp 17 p8_3 int1 18 p8_2 int0 19 p8_1 ta4in/ u tsudb 20 p8_0 ta4out/u tsuda 21 p7_7 ta3in crx1 (1) 22 p7_6 ta3out ctx1 (1) 23 p7_5 ta2in/ w lin0in 24 p7_4 ta2out/w lin0out 25 p7_3 ta1in/ v cts2 / rts2 /txd1 26 p7_2 ta1out/v clk2/rxd1 27 p7_1 ta0in/tb5in rxd2/scl2/clk1 28 p7_0 ta0out txd2/sda2/ cts1 / rts1 29 p6_7 txd1 30 p6_6 rxd1 31 p6_5 clk1 32 p6_4 cts1 / rts1 33 p6_3 txd0 34 p6_2 rxd0 35 p6_1 clk0 36 p6_0 rtcout cts0 / rts0 37 p5_7 38 p5_6 39 p5_5 40 p5_4 41 p5_3 42 p5_2 43 p5_1 44 p5_0 45 p4_7 46 p4_6 47 p4_5 48 p4_4 49 p4_3 50 p4_2 www.datasheet.in
rej03b0267-0101 rev.1.01 page 17 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. pins ctx0 and crx0 are only available in the m16c/5m group. table 1.12 pin names, 100-pin package(2/2) pin no. control pin port interrupt pin timer pin timer s pin uart/can/lin/serial bus interface pin multi- master i 2 c- bus pin analog pin 51 p4_1 52 p4_0 53 p3_7 54 p3_6 55 p3_5 56 p3_4 57 p3_3 cts3 / rts3 / scs0 58 p3_2 txd3/sso0 59 p3_1 rxd3/ssi0 60 vcc 61 p3_0 clk3/ssck0 62 vss 63 p2_7 outc1_7/inpc1_7 64 p2_6 outc1_6/inpc1_6 65 p2_5 int7 outc1_5/inpc1_5 66 p2_4 int6 outc1_4/inpc1_4 67 p2_3 outc1_3/inpc1_3 68 p2_2 outc1_2/inpc1_2 69 p2_1 outc1_1/inpc1_1 sclmm 70 p2_0 outc1_0/inpc1_0 sdamm 71 p1_7 int5 idu inpc1_7 72 p1_6 int4 idw 73 p1_5 int3 idv adtrg 74 p1_4 75 p1_3 an2_3 76 p1_2 an2_2 77 p1_1 an2_1 78 p1_0 an2_0 79 p0_7 an0_7 80 p0_6 an0_6 81 p0_5 an0_5 82 p0_4 an0_4 83 p0_3 an0_3 84 p0_2 an0_2 85 p0_1 an0_1 86 p0_0 an0_0 87 p10_7 ki3 an_7 88 p10_6 ki2 an_6 89 p10_5 ki1 an_5 90 p10_4 ki0 an_4 91 p10_3 an_3 92 p10_2 an_2 93 p10_1 an_1 94 avss 95 p10_0 an_0 96 vref 97 avcc 98 p9_7 rxd4 an2_7 99 p9_6 txd4/ctx0 (1) an2_6 100 p9_5 clk4/crx0 (1) an2_5 www.datasheet.in
rej03b0267-0101 rev.1.01 page 18 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview figure 1.7 pin assignment for 80-pin package (top view) set bits pacr2 to pacr0 in the pacr register to 011b before signals are input or output to individual pins after reset. when the pacr register is not set, si gnals are not input or output for some of the pins. 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 p9_6 / an2_6 / txd4 p7_6 / ta3out / ctx1 (1) p7_5 / ta2in / w / lin0in p9_7 / an2_7 / rxd4 avcc vref p10_0 / an_0 avss p10_1 / an_1 p10_2 / an_2 p10_3 / an_3 p10_4 / an_4 / ki0 p10_5 / an_5 / ki1 p10_6 / an_6 / ki2 p10_7 / an_7 / ki3 p0_0 / an0_0 p0_1 / an0_1 p0_2 / an0_2 p0_3 / an0_3 p0_4 / an0_4 p0_5 / an0_5 p0_6 / an0_6 p7_4 / ta2out / w / lin0out p7_3 / cts2 / rts2 / ta1in / v / txd1 p7_2 / clk2 / ta1out / v / rxd1 p7_1 / rxd2 / scl2 / ta0in / clk1 p7_0 / txd2 / sda2 / ta0out / cts1 / rts1 p6_7 / txd1 p6_6 / rxd1 p6_5 / clk1 p6_4 / cts1 / rts1 p3_7 p3_6 p3_5 p3_4 p3_3 / cts3 / rts3 / scs0 p3_2 / txd3 / sso0 p3_1 / rxd3 / ssi0 p3_0 / clk3 / ssck0 p6_3 / txd0 p9_5 / an2_5/ clk4 p9_3 / an2_4 /ctx0 (1) p9_2 / an3_2 / tb2in / crx0 (1) p9_0 / an3_0 / tb0in / clkout cnvss p8_7 / xcin p8_6 / xcout reset xout vss p8_4 / int2 / zp p8_3 / int1 p8_2 / int0 p8_1 / ta4in / u/ tsudb p8_0 / ta4out / u/ tsuda p7_7 / ta3in / crx1 (1) p9_1 / an3_1 / tb1in / da0 xin vcc p8_5 / nmi / sd p0_7 / an0_7 p1_0 / an2_0 p1_1 / an2_1 p1_2 / an2_2 p1_3 / an2_3 p1_4 p1_5 / int3 / adtrg / idv p2_6 / outc1_6 / inpc1_6 p6_0 / rtcout / cts0 / rts0 p6_1 / clk0 p6_2 / rxd0 p1_6 / int4 / idw p2_7 / outc1_7 / inpc1_7 p1_7 / int5 / inpc1_7 / idu p2_0 / outc1_0 / inpc1_0 / sdamm p2_1 / outc1_1 / inpc1_1 / sclmm p2_2 / outc1_2 / inpc1_2 p2_3 / outc1_3 / inpc1_3 p2_4 / outc1_4 / inpc1_4 p2_5 / outc1_5 / inpc1_5 1. pins ctx0, crx0, ctx1, and crx1 are only available in the m16c/5m group. note: plqp0080kb-a (80p6q-a) (top view) m16c/5m group m16c/57 group www.datasheet.in
rej03b0267-0101 rev.1.01 page 19 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. pins ctx0, crx0, ctx1 and crx1 are only available in the m16c/5m group. table 1.13 pin names, 80-pin package (1/2) pin no. control pin port interrupt pin timer pin timer s pin uart/can/lin/serial bus interface pin multi- master i 2 c-bus pin analog pin 1 p9_5 clk4 an2_5 2 p9_3 ctx0 (1) an2_4 3 p9_2 tb2in crx0 (1) an3_2 4 p9_1 tb1in an3_1/ da0 5 clkout p9_0 tb0in an3_0 6cnvss 7 xcin p8_7 8 xcout p8_6 9 reset 10 xout 11 vss 12 xin 13 vcc 14 p8_5 nmi sd 15 p8_4 int2 zp 16 p8_3 int1 17 p8_2 int0 18 p8_1 ta4in/ u tsudb 19 p8_0 ta4out/u tsuda 20 p7_7 ta3in crx1 (1) 21 p7_6 ta3out ctx1 (1) 22 p7_5 ta2in/ w lin0in 23 p7_4 ta2out/w lin0out 24 p7_3 ta1in/ vc t s 2 / rts2 /txd1 25 p7_2 ta1out/v clk2/rxd1 26 p7_1 ta0in rxd2/scl2/clk1 27 p7_0 ta0out txd2/sda2/ cts1 / rts1 28 p6_7 txd1 29 p6_6 rxd1 30 p6_5 clk1 31 p6_4 cts1 / rts1 32 p3_7 33 p3_6 34 p3_5 35 p3_4 36 p3_3 cts3 / rts3 / scs0 37 p3_2 txd3/sso0 38 p3_1 rxd3/ssi0 39 p3_0 clk3/ssck0 40 p6_3 txd0 www.datasheet.in
rej03b0267-0101 rev.1.01 page 20 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview table 1.14 pin names, 80-pin package (2/2) pin no. control pin port interrupt pin timer pin timer s pin uart/can/lin/serial bus interface pin multi- master i 2 c-bus pin analog pin 41 p6_2 rxd0 42 p6_1 clk0 43 p6_0 rtcout cts0 / rts0 44 p2_7 outc1_7/inpc1_7 45 p2_6 outc1_6/inpc1_6 46 p2_5 outc1_5/inpc1_5 47 p2_4 outc1_4/inpc1_4 48 p2_3 outc1_3/inpc1_3 49 p2_2 outc1_2/inpc1_2 50 p2_1 outc1_1/inpc1_1 sclmm 51 p2_0 outc1_0/inpc1_0 sdamm 52 p1_7 int5 idu inpc1_7 53 p1_6 int4 idw 54 p1_5 int3 idv adtrg 55 p1_4 56 p1_3 an2_3 57 p1_2 an2_2 58 p1_1 an2_1 59 p1_0 an2_0 60 p0_7 an0_7 61 p0_6 an0_6 62 p0_5 an0_5 63 p0_4 an0_4 64 p0_3 an0_3 65 p0_2 an0_2 66 p0_1 an0_1 67 p0_0 an0_0 68 p10_7 ki3 an_7 69 p10_6 ki2 an_6 70 p10_5 ki1 an_5 71 p10_4 ki0 an_4 72 p10_3 an_3 73 p10_2 an_2 74 p10_1 an_1 75 avss 76 p10_0 an_0 77 vref 78 avcc 79 p9_7 rxd4 an2_7 80 p9_6 txd4 an2_6 www.datasheet.in
rej03b0267-0101 rev.1.01 page 21 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview figure 1.8 pin assignments for 64-pin package (top view) set bits pacr2 to pacr0 in the pacr register to 010b before signals are input or output to individual pins after reset. when the pacr register is not set, signals are not input or output for some of the pins. 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 p9_2 / an3_2 / tb2in / crx0 (1) p7_7 / ta3in / crx1 (1) p7_6 / ta3out / ctx1 (1) p9_3 / an2_4 /ctx0 (1) avcc vref p10_0 / an_0 avss p10_1 / an_1 p10_2 / an_2 p10_3 / an_3 p10_4 / an_4 / ki0 p10_5 / an_5 / ki1 p10_6 / an_6 / ki2 p10_7 / an_7 / ki3 p0_0 / an0_0 p0_1 / an0_1 p0_2 / an0_2 p7_5 / ta2in / w / lin0in p7_4 / ta2out / w / lin0out p7_3 / cts2 / rts2 / ta1in / v / txd1 p7_2 / clk2 / ta1out / v / rxd1 p7_1 / rxd2 / scl2 / ta0in / clk1 p7_0 / txd2 / sda2 / ta0out / cts1 / rts1 p6_7 / txd1 p6_6 / rxd1 p6_5 / clk1 p6_4 / rts1 / cts1 p3_3 / cts3 / rts3 / scs0 p3_2 / txd3 / sso0 p3_1 / rxd3 / ssi0 p3_0 / clk3 / ssck0 p9_1 / an3_1 / tb1in / da0 p9_0 / an3_0 / tb0in / clkout cnvss p8_6 / xcout reset xout vss xin vcc p8_5 / nmi / sd p8_1 / ta4in / u / tsudb p8_0 / ta4out / u / tsuda p8_7 / xcin p8_4 / int2 / zp p8_3 / int1 p8_2 / int0 p0_3 / an0_3 p1_5 / int3 / adtrg / idv p1_6 / int4 / idw p1_7 / int5 / inpc1_7 / idu p2_0 / outc1_0 / inpc1_0 / sdamm p2_1 / outc1_1 / inpc1_1 / sclmm p2_2 / outc1_2 / inpc1_2 p6_3 / txd0 p2_3 / outc1_3 / inpc1_3 p2_4 / outc1_4 / inpc1_4 p2_5 / outc1_5 / inpc1_5 p2_6 / outc1_6 / inpc1_6 p2_7 / outc1_7 / inpc1_7 p6_0 / rtcout / cts0 / rts0 p6_1 / clk0 p6_2 / rxd0 note: 1. pins ctx0, crx0, ctx1, and crx1 are only available in the m16c/5m group. plqp0064kb-a (64p6q-a) (top view) m16c/5m group m16c/57 group www.datasheet.in
rej03b0267-0101 rev.1.01 page 22 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. pins ctx1 and crx1 are only available in the m16c/5m group. table 1.15 pin names, 64-pin package (1/2) pin no. control pin port interrupt pin timer pin timer s pin uart/can/lin/serial bus interface pin multi- master i 2 c-bus pin analog pin 1 p9_1 tb1in an3_1/ da0 2 clkout p9_0 tb0in an3_0 3cnvss 4 xcin p8_7 5 xcout p8_6 6 reset 7xout 8 vss 9xin 10 vcc 11 p8_5 nmi sd 12 p8_4 int2 zp 13 p8_3 int1 14 p8_2 int0 15 p8_1 ta4in/ u tsudb 16 p8_0 ta4out/u tsuda 17 p7_7 ta3in crx1 (1) 18 p7_6 ta3out ctx1 (1) 19 p7_5 ta2in/ w lin0in 20 p7_4 ta2out/w lin0out 21 p7_3 ta1in/ vc t s 2 / rts2 /txd1 22 p7_2 ta1out/v clk2/rxd1 23 p7_1 ta0in rxd2/scl2/clk1 24 p7_0 ta0out txd2/sda2/ cts1 / rts1 25 p6_7 txd1 26 p6_6 rxd1 27 p6_5 clk1 28 p6_4 cts1 / rts1 29 p3_3 cts3 / rts3 / scs0 30 p3_2 txd3 / sso0 www.datasheet.in
rej03b0267-0101 rev.1.01 page 23 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. pins ctx0 and crx0 are only available in the m16c/5m group. table 1.16 pin names, 64-pin package (2/2) pin no. control pin port interrupt pin timer pin timer s pin uart/can/lin/serial bus interface pin multi- master i 2 c-bus pin analog pin 31 p3_1 rxd3 / ssi0 32 p3_0 clk3 / ssck0 33 p6_3 txd0 34 p6_2 rxd0 35 p6_1 clk0 36 p6_0 rtcout cts0 / rts0 37 p2_7 outc1_7/inpc1_7 38 p2_6 outc1_6/inpc1_6 39 p2_5 outc1_5/inpc1_5 40 p2_4 outc1_4/inpc1_4 41 p2_3 outc1_3/inpc1_3 42 p2_2 outc1_2/inpc1_2 43 p2_1 outc1_1/inpc1_1 sclmm 44 p2_0 outc1_0/inpc1_0 sdamm 45 p1_7 int5 idu inpc1_7 46 p1_6 int4 idw 47 p1_5 int3 idv adtrg 48 p0_3 an0_3 49 p0_2 an0_2 50 p0_1 an0_1 51 p0_0 an0_0 52 p10_7 ki3 an_7 53 p10_6 ki2 an_6 54 p10_5 ki1 an_5 55 p10_4 ki0 an_4 56 p10_3 an_3 57 p10_2 an_2 58 p10_1 an_1 59 avss 60 p10_0 an_0 61 vref 62 avcc 63 p9_3 ctx0 (1) an2_4 64 p9_2 tb2in crx0 (1) an3_2 www.datasheet.in
rej03b0267-0101 rev.1.01 page 24 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview 1.6 pin functions note: 1. please contact the oscillator manufact urer for oscillation characteristic. table 1.17 pin functions (64-pin, 80-pin, and 100-pin packages) signal name pin name i/o description power supply vcc, vss i apply 3.0 v to 5.5 v to the vcc pin and 0 v to the vss pin. analog power supply avcc, avss i power supply for the a/d conver ter and d/a converter. pins avcc and avss should be connected to vcc and vss, respectively. reset input reset i driving this pin low resets the mcu. cnvss cnvss i connect to vss via a resistor. main clock input xin i input/output for the main clock oscillator. connect a ceramic resonator or crystal oscillator between xin and xout. (1) to apply an external clock, connect it to xin and leave xout open. when xin is not used, connect xin to vcc pin and leave xout open. main clock output xout o sub clock input xcin i input/output for the sub clock oscillator. connect a crystal oscillator between xcin and xcout. (1) sub clock output xcout o clock output clkout o this pin outputs the clock having the same frequency as f1, f8, f32, or fc. int interrupt input int0 to int5 i input for int interrupt nmi input nmi i input for nmi key input interrupt ki0 to ki3 i input for the key input interrupt timer a ta0out to ta4out i/o timers a0 to a4 input/output ta0in to ta4in i timers a0 to a4 input zp i input for z-phase timer b tb0in to tb2in i ti mers b0 to b2 input three-phase motor control timer u, u ,v, v ,w, w o output for three-phase motor control timer idu, idw, idv, sd i input for three-phase motor control timer real-time clock rtcout o output for real-time clock serial interface uart0 to uart3 cts0 to cts3 i input to control data transmission rts0 to rts3 o output to control data reception clk0 to clk3 i/o transfer clock input/output rxd0 to rxd3 i serial data input txd0 to txd3 o serial data output uart2 i 2 c mode sda2 i/o serial data input/output scl2 i/o transfer clock input/output multi-master i 2 c bus sdamm i/o serial data input/output sclmm transfer clock input/output www.datasheet.in
rej03b0267-0101 rev.1.01 page 25 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview note: 1. there is the can module only in the m16c/5m group. table 1.18 pin functions (64-pin, 80-pin, and 100-pin packages) signal name pin name i/o description reference voltage input vref i reference voltage input for the a/d converter and d/a converter. a/d converter an_0 to an_7 an0_0 to an0_3 an3_0 to an3_2 i analog input adtrg i input for an external trigger timer s inpc1_0 to inpc1_7 i input for time measurement function outc1_0 to outc1_7 o output for waveform generating function tsuda, tsudb i two-phase pulse input can module (1) crx0, crx1 i receive data input for can communication ctx0, ctx1 o transmit data output for can communication d/a converter da0 o output for the d/a converter lin module lin0out o transmit data output for lin communication lin0in i receive data input for lin communication serial bus interface sso0 o serial data output ssi0 i serial data input ssck0 i/o input/output for transmit/receive clock scs0 i input to control the serial interface i/o port p0_0 to p0_3 p1_5 to p1_7 p2_0 to p2_7 p3_0 to p3_3 p6_0 to p6_7 p7_0 to p7_7 p8_0 to p8_7 p9_0 to p9_3 p10_0 to p10_7 i/o cmos i/o ports. a direction register determines whether each pin is used as an input port or an output port. for input ports, pull-up resistor is selectable for every unit of 4 bits. however, p8_5 output is n-channel open drain output and does not have a pull-up resistor. port p8_5 shares the pin with nmi, so that the nmi input level can be read from the p8 register p8_5 bit. www.datasheet.in
rej03b0267-0101 rev.1.01 page 26 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 1. overview table 1.19 pin functions (100-pin package only) signal name pin name i/o description int interrupt input int6 and int7 i input for int interrupt timer b tb3in to tb5in i timers b3 to b5 input i/o port p4_0 to p4_7 p5_0 to p5_7 p9_4 i/o cmos i/o ports. a direction register determines whether each pin is used as an input port or an output port. for input ports, pull-up resistor is selectable for every unit of 4 bits. table 1.20 pin functions (80-pin and 64-pin package only) signal name pin name i/o description a/d converter an2_4 i analog input table 1.21 pin functions (100-pin and 80-pin package only) signal name pin name i/o description serial interface uart4 clk4 i/o transfer clock input/output rxd4 i serial data input txd4 o serial data output a/d converter an0_4 to an0_7 an2_0 to an2_3 an2_5 to an2_7 i analog input i/o port p0_4 to p0_7 p1_0 to p1_4 p3_4 to p3_7 p9_5 to p9_7 i/o cmos i/o ports. a direction register determines whether each pin is used as an input port or an output port. for input ports, pull-up resistor is selectable for every unit of 4 bits. www.datasheet.in
rej03b0267-0101 rev.1.01 page 27 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 2. central processing unit (cpu) 2. central processi ng unit (cpu) figure 2.1 shows the cpu registers. seven registers (r0, r1, r2, r3, a0, a1, and fb) out of 13 compose a register bank, and there are two register banks. figure 2.1 cpu registers r0h (upper bits of r0) b15 b8 b7 b0 r3 intbh usp isp sb note: 1. these registers compose a register bank. there are two register banks. cdzsboiu ipl r2 b31 r3 r2 a1 a0 fb b19 intbl b15 b0 pc intbh is the 4 upper bits of the intb register and intbl is the 16 lower bits. b19 b0 b15 b0 flg b15 b0 b15 b0 b7 b8 data registers (1) address registers (1) frame base registers (1) program counter interrupt table register user stack pointer interrupt stack pointer static base register flag register reserved area carry flag debug flag zero flag sign flag register bank select flag overflow flag interrupt enable flag stack pointer select flag reserved area processor interrupt priority level r1h (upper bits of r1) r0l (lower bits of r0) r1l (lower bits of r1) www.datasheet.in
rej03b0267-0101 rev.1.01 page 28 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 2. central processing unit (cpu) 2.1 data registers (r 0, r1, r2, and r3) r0, r1, r2, and r3 are 16-bit registers used for transf er, arithmetic, and logic operations. r0 and r1 can be split into upper (r0h/r1h) and lower (r0l/r1l) bits to be used separately as 8-bit data registers. r0 can be combined with r2, and r3 can be combined with r1 and be used as 32-bit data registers r2r0 and r3r1, respectively. 2.2 address registers (a0 and a1) a0 and a1 are 16-bit registers used for indirect addre ssing, relative addressing, transfer, arithmetic, and logic operations. a0 can be combined with a1 and used as a 32-bit address register (a1a0). 2.3 frame base register (fb) fb is a 16-bit register that is used for fb relative addressing. 2.4 interrupt table register (intb) intb is a 20-bit register that indicates the star t address of a relocatable interrupt vector table. 2.5 program counter (pc) the pc is 20 bits wide and indicates the add ress of the next instruction to be executed. 2.6 user stack pointer (usp) and interrupt stack pointer (isp) the usp and isp stack pointers (sp) are each comprised of 16 bits. the u flag is used to switch between usp and isp. 2.7 static base register (sb) sb is a 16-bit register used for sb relative addressing. 2.8 flag register (flg) flg is an 11-bit register th at indicates the cpu state. 2.8.1 carry flag (c flag) the c flag retains a carry, borrow, or shift-out bit generated by the arithmetic/logic unit. 2.8.2 debug flag (d flag) the d flag is for debugging only. set it to 0. 2.8.3 zero flag (z flag) the z flag becomes 1 when an arithmetic opera tion results in 0. otherwise, it becomes 0. 2.8.4 sign flag (s flag) the s flag becomes 1 when an arithmetic operation re sults in a negative val ue. otherwise, it becomes 0. 2.8.5 register bank se lect flag (b flag) register bank 0 is selected when the b flag is 0. register bank 1 is selected when this flag is 1. 2.8.6 overflow flag (o flag) the o flag becomes 1 when an arithmetic operation re sults in an overflow. otherwise, it becomes 0. www.datasheet.in
rej03b0267-0101 rev.1.01 page 29 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 2. central processing unit (cpu) 2.8.7 interrupt enable flag (i flag) the i flag enables maskable interrupts. maskable interrupts are disabled when the i flag is 0, and enabled when it is 1. the i flag becomes 0 when an interrupt request is accepted. 2.8.8 stack pointer select flag (u flag) isp is selected when the u flag is 0. usp is selected when the u flag is 1. the u flag becomes 0 when a hardware interrupt request is accepted, or the int instruction of software interrupt number 0 to 31 is executed. 2.8.9 processor interrupt priority level (ipl) ipl is 3 bits wide and assigns processor interrupt priority levels from 0 to 7. if a requested interrupt has higher priority than ipl, the interrupt request is enabled. 2.8.10 reserved areas only set these bits to 0. the read value is undefined. www.datasheet.in
rej03b0267-0101 rev.1.01 page 30 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 3. memory 3. memory special function registers (sfrs) are allocated from address 00000h to 003ffh and from 0d000h to 0d7ffh. peripheral function control registers are locate d here. all blank spaces within sfrs are reserved, so do not access any blank spaces. the internal ram is allocated from address 00400h to superior direction. for example, a 8-kbyte internal ram is addressed from 00400h to 023ffh. the internal ram is used not only for data storage but also for stack area when subroutines are called or when interrupt request are acknowledged. the internal rom is flash memory. four internal rom areas are available: e 2 dataflash, data flash, program rom 1, and program rom 2. the data flash is addressed from 0e000h to 0ffffh. th is data flash space is used not only for data storage but also for program storage. program rom 2 is assigned addresses 10000h to 13fffh. program rom 1 is assigned addresses fffffh to inferior direction. for example, the 64-kbyte program rom 1 space has addresses f0000h to fffffh. the e 2 dataflash is not shown in the memory map because the e2fa register value is used as an address. the e 2 dataflash cannot be used for program storage. whether the e 2 dataflash is provided or not depends on the product. the special page vectors are assigned addresses ffe00h to fffd7h. they are used for the jmps instruction and jsrs instru ction. refer to the m16c/60, m16c/20, m16c/tiny series software manual for details. the fixed vector table for interrupts, id code write address, ofs1 address and osf2 address are assigned addresses fffdbh to fffffh. the 256 bytes beginning with the start address set in the intb register compose the relocatable vector table for interrupts. www.datasheet.in
rej03b0267-0101 rev.1.01 page 31 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 3. memory figure 3.1 memory map notes: 1. do not access these reserved areas. 2. do not change the data from ffh. 00000h xxxxxh 0d000h 00400h 0d800h 0e000h 10000h 14000h yyyyyh fffffh fffffh fffdbh fffd8h ffe00h 256 bytes beginning with the start address set in the intb register 13fffh 13ff0h 13000h reserved (1) reserved (1) internal rom (data flash) internal rom (program rom 2) sfrs sfrs internal ram reserved (1) internal rom (program rom 1) on-chip debugger monitor area user boot code area relocatable vector table special page vector table reserved (2) fixed vector table id code write address ofs1 address osf2 address internal ram capacity xxxxxh 8 kbytes 023ffh 12 kbytes 033ffh 20 kbytes 053ffh internal rom capacity yyyyyh 96 kbytes e8000h 128 kbytes e0000h 256 kbytes c0000h the above assumes the following: -the pm10 bit in the pm1 register is set to 1 (addresses from 0e000h to 0ffffh are used as data flash) -the prg2c0 bit in the prg2c register is set to 0 (program rom 2 enabled) www.datasheet.in
rej03b0267-0101 rev.1.01 page 32 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) 4. special function registers (sfrs) 4.1 sfrs an sfr is a control register for a peripheral function. notes: 1. the blank areas are reserved. no access is allowed. 2. software reset, watchdog timer reset, oscillator stop detect reset, and voltage monitor 2 reset do not affect the following registers: the vcr1 r egister and the vcr2 register. 3. oscillator stop detect reset does not affect bits cm20, cm21, and cm27. 4. the state of bits in the rstfr register depends on the reset type. 5. this is the reset value when the lvdas bit of the ofs1 address is 1 during hardware reset. 6. this is the reset value after voltage monitor 0 reset, power-on reset, or when the lvdas bit of the ofs1 address is 0 during hardware reset. table 4.1 sfr information (1) (1) address register symbol reset value 0000h 0001h 0002h 0003h 0004h processor mode register 0 pm0 00h 0005h processor mode register 1 pm1 0000 1000b 0006h system clock control register 0 cm0 0100 1000b 0007h system clock control register 1 cm1 0010 0000b 0008h 0009h 000ah protect register prcr 00h 000bh 000ch oscillation stop detection register cm2 0x00 0010b (3) 000dh 000eh 000fh 0010h program 2 area control register prg2c xxxx xx00b 0011h 0012h peripheral clock select register pclkr 0000 0011b 0013h 0014h 0015h clock prescaler reset flag cpsrf 0xxx xxxxb 0016h 0017h 0018h reset source determine register rstfr xx0x 001xb (hardware reset) (4) 0019h voltage detector 2 flag register vcr1 0000 1000b (2) 001ah voltage detector operation enable register vcr2 000x 0000b (2, 5) 001x 0000b (2, 6) 001bh 001ch pll control register 0 plc0 0x01 x010b 001dh 001eh processor mode register 2 pm2 xx00 0x01b 001fh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 33 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) notes: 1. the blank areas are reserved. no access is allowed. 2. hardware reset, power-on reset, voltage monitor 0 reset, or voltage monitor 2 reset. 3. software reset, watchdog timer reset, oscillator stop detect reset, and voltage monitor 2 reset do not affect the following registers or bit: the vw0c register, an d bits vw2c2 and vw2c3 in the vw2c register. 4. this is the reset value when the lvdas bit of the ofs1 address is 1 during hardware reset 5. this is the reset value after voltage monitor 0 reset, power-on reset, or when the lvdas bit of the ofs1 address is 0 during hardware reset. 6. this is the reset value after hardware reset, power-on reset, or voltage monitor 0 reset table 4.2 sfr information (2) (1) address register symbol reset value 0020h 0021h 0022h 40 mhz on-chip oscillator co ntrol register 0 fra0 xxxx xx00b 0023h 0024h 40 mhz on-chip oscillator control register 2 fra2 0xx0 x000b 0025h 0026h voltage monitor function select register vwce 00h 0027h 0028h voltage detector 2 level select register vd2ls 0000 0100b (2) 0029h 002ah voltage monitor 0 control register vw0c 1100 1x10b (3, 4) 1100 1x11b (3, 5) 002bh 002ch voltage monitor 2 control register vw2c 1000 0x10b (3, 6) 002dh 002eh 002fh 0030h 0031h 0032h 0033h 0034h 0035h 0036h 0037h 0038h 0039h 003ah 003bh 003ch 003dh 003eh 003fh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 34 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.3 sfr information (3) (1) address register symbol reset value 0040h 0041h e 2 dataflash interrupt control register e2fic xxxx x000b 0042h int7 interrupt control register serial bus interface 0 interrupt control register int7ic ss0ic xx00 x000b 0043h int6 interrupt control register lin0 interrupt control register int6ic lin0ic xx00 x000b 0044h int3 interrupt control register int3ic xx00 x000b 0045h timer b5 interrupt control register tb5ic xxxx x000b 0046h timer b4 interrupt control register tb4ic xxxx x000b 0047h timer b3 interrupt control register tb3ic xxxx x000b 0048h int5 interrupt control register int5ic xx00 x000b 0049h int4 interrupt control register int4ic xx00 x000b 004ah uart2 bus collision detection interrupt control register task monitoring timer interrupt control register bcnic tmosic xxxx x000b 004bh dma0 interrupt control register dm0ic xxxx x000b 004ch dma1 interrupt control register dm1ic xxxx x000b 004dh key input interrupt control register kupic xxxx x000b 004eh a/d conversion interrupt control register adic xxxx x000b 004fh uart2 transmit interrupt control register s2tic xxxx x000b 0050h uart2 receive interrupt control register s2ric xxxx x000b 0051h uart0 transmit interrupt control register lin0 low detection interrupt control register s0tic l0wic xxxx x000b 0052h uart0 receive interrupt control register s0ric xxxx x000b 0053h uart1 transmit interrupt control register s1tic xxxx x000b 0054h uart1 receive interrupt control register s1ric xxxx x000b 0055h timer a0 interrupt control register ta0ic xxxx x000b 0056h timer a1 interrupt control register ta1ic xxxx x000b 0057h timer a2 interrupt control register ta2ic xxxx x000b 0058h timer a3 interrupt control register ta3ic xxxx x000b 0059h timer a4 interrupt control register ta4ic xxxx x000b 005ah timer b0 interrupt control register tb0ic xxxx x000b 005bh timer b1 interrupt control register tb1ic xxxx x000b 005ch timer b2 interrupt control register tb2ic xxxx x000b 005dh int0 interrupt control register int0ic xx00 x000b 005eh int1 interrupt control register int1ic xx00 x000b 005fh int2 interrupt control register int2ic xx00 x000b x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 35 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.4 sfr information (4) (1) address register symbol reset value 0060h 0061h 0062h 0063h 0064h 0065h 0066h 0067h 0068h 0069h dma2 interrupt control register dm2ic xxxx x000b 006ah dma3 interrupt control register dm3ic xxxx x000b 006bh can 1 receive completion interrupt control register c1ric xxxx x000b 006ch can 1 transmit completion interrupt control register c1tic xxxx x000b 006dh can 1 receive fifo interrupt control register c1fric xxxx x000b 006eh can 1 transmit fifo interrupt control register c1ftic xxxx x000b 006fh uart4 transmit interrupt control register real-time clock compare interrupt control register s4tic rtccic xxxx x000b 0070h uart4 receive interrupt control register s4ric xxxx x000b 0071h can0 wakeup interrupt control register c0wic xxxx x000b 0072h uart3 transmit interrupt control register can0 error interrupt control register s3tic c0eic xxxx x000b 0073h uart3 receive interrupt control register can 1 wakeup interrupt control register s3ric c1wic xxxx x000b 0074h real-time clock cycle interrupt control register can 1 error interrupt control register rtctic c1eic xxxx x000b 0075h can0 receive completion interrupt control register c0ric xxxx x000b 0076h can0 transmit completion interrupt control register c0tic xxxx x000b 0077h can0 receive fifo interrupt control register c0fric xxxx x000b 0078h can0 transmit fifo interrupt control register c0ftic xxxx x000b 0079h ic/oc interrupt 0 control register icoc0ic xxxx x000b 007ah ic/oc channel 0 interrupt control register icoch0ic xxxx x000b 007bh ic/oc interrupt 1 control register i2c-bus interface interrupt control register icoc1ic iicic xxxx x000b 007ch ic/oc channel 1 interrupt control register scl/sda interrupt control register icoch1ic scldaic xxxx x000b 007dh ic/oc channel 2 interrupt control register icoch2ic xxxx x000b 007eh ic/oc channel 3 interrupt control register icoch3ic xxxx x000b 007fh ic/oc base timer interrupt control register btic xxxx x000b x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 36 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.5 sfr information (5) (1) address register symbol reset value 0080h e 2 dataflash address register e2fa 00h 0081h 00h 0082h xxh 0083h xxh 0084h 0085h 0086h 0087h 0088h e 2 dataflash command register e2fi 00h 0089h xxh 008ah 008bh 008ch e 2 dataflash data register e2fd xxh 008dh xxh 008eh 008fh 0090h e 2 dataflash mode register e2fm 00h 0091h 0092h e 2 dataflash control register e2fc xxxx xxx0b 0093h 0094h e 2 dataflash status register 1 e2fs1 xxxx xxx0b 0095h 0096h 0097h 0098h 0099h 009ah 009bh 009ch 009dh 009eh 009fh 00a0h 00a1h e 2 dataflash status register 0 e2fs0 0x00 xxxxb 00a2h 00a3h 00a4h 00a5h 00a6h 00a7h 00a8h 00a9h 00aah 00abh 00ach 00adh 00aeh 00afh 00b0h to 015fh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 37 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.6 sfr information (6) (1) address register symbol reset value 0160h 0161h lin wakeup baud rate select register lwbr 00h 0162h lin baud rate prescaler 0 register lbrp0 00h 0163h lin baud rate prescaler 1 register lbrp1 00h 0164h lin self-test control register lstc 00h 0165h lin port clock control register lpc 00h 0166h 0167h 0168h lin0 mode register l0md 00h 0169h lin0 break field setting register l0brk 00h 016ah lin0 space width setting register l0spc 00h 016bh lin0 wakeup setting register l0wup 00h 016ch lin0 interrupt enable register l0ie 00h 016dh lin0 error detection enable register l0ede 00h 016eh lin0 control register l0c 00h 016fh 0170h lin0 transmit control register l0tc 00h 0171h lin0 mode status register l0mst 00h 0172h lin0 status register l0st 00h 0173h lin0 error status register l0est 00h 0174h lin0 response field setting register l0rfc 00h 0175h lin0 id buffer register l0idb xxh 0176h lin0 check sum buffer register l0cb xxh 0177h 0178h lin0 data 1 buffer register l0db1 xxh 0179h lin0 data 2 buffer register l0db2 xxh 017ah lin0 data 3 buffer register l0db3 xxh 017bh lin0 data 4 buffer register l0db4 xxh 017ch lin0 data 5 buffer register l0db5 xxh 017dh lin0 data 6 buffer register l0db6 xxh 017eh lin0 data 7 buffer register l0db7 xxh 017fh lin0 data 8 buffer register l0db8 xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 38 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.7 sfr information (7) (1) address register symbol reset value 0180h dma0 source pointer sar0 xxh 0181h xxh 0182h 0xh 0183h 0184h dma0 destination pointer dar0 xxh 0185h xxh 0186h 0xh 0187h 0188h dma0 transfer counter tcr0 xxh 0189h xxh 018ah 018bh 018ch dma0 control register dm0con 0000 0x00b 018dh 018eh 018fh 0190h dma1 source pointer sar1 xxh 0191h xxh 0192h 0xh 0193h 0194h dma1 destination pointer dar1 xxh 0195h xxh 0196h 0xh 0197h 0198h dma1 transfer counter tcr1 xxh 0199h xxh 019ah 019bh 019ch dma1 control register dm1con 0000 0x00b 019dh 019eh 019fh 01a0h dma2 source pointer sar2 xxh 01a1h xxh 01a2h 0xh 01a3h 01a4h dma2 destination pointer dar2 xxh 01a5h xxh 01a6h 0xh 01a7h 01a8h dma2 transfer counter tcr2 xxh 01a9h xxh 01aah 01abh 01ach dma2 control register dm2con 0000 0x00b 01adh 01aeh 01afh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 39 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.8 sfr information (8) (1) address register symbol reset value 01b0h dma3 source pointer sar3 xxh 01b1h xxh 01b2h 0xh 01b3h 01b4h dma3 destination pointer dar3 xxh 01b5h xxh 01b6h 0xh 01b7h 01b8h dma3 transfer counter tcr3 xxh 01b9h xxh 01bah 01bbh 01bch dma3 control register dm3con 0000 0x00b 01bdh 01beh 01bfh 01c0h timer b0-1 register tb01 xxh 01c1h xxh 01c2h timer b1-1 register tb11 xxh 01c3h xxh 01c4h timer b2-1 register tb21 xxh 01c5h xxh 01c6h pulse period/pulse width measurement mode function select register 1 ppwfs1 xxxx x000b 01c7h 01c8h timer b count source select register 0 tbcs0 00h 01c9h timer b count source select register 1 tbcs1 x0h 01cah 01cbh timer ab division control register 0 tckdivc0 0000 x000b 01cch 01cdh 01ceh 01cfh 01d0h timer a count source select register 0 tacs0 00h 01d1h timer a count source select register 1 tacs1 00h 01d2h timer a count source select register 2 tacs2 x0h 01d3h 01d4h 16-bit pulse width modulation mode func tion select register pwmfs 0xx0 x00xb 01d5h timer a waveform output function select register tapofs xxx0 0000b 01d6h 01d7h 01d8h timer a output waveform change enable register taow xxx0 x00xb 01d9h 01dah three-phase protect control register tprc 00h 01dbh 01dch 01ddh 01deh 01dfh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 40 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.9 sfr information (9) (1) address register symbol reset value 01e0h timer b3-1 register tb31 xxh 01e1h xxh 01e2h timer b4-1 register tb41 xxh 01e3h xxh 01e4h timer b5-1 register tb51 xxh 01e5h xxh 01e6h pulse period/pulse width measurement mode function select reg- ister 2 ppwfs2 xxxx x000b 01e7h 01e8h timer b count source select register 2 tbcs2 00h 01e9h timer b count source select register 3 tbcs3 x0h 01eah 01ebh 01ech 01edh 01eeh 01efh 01f0h task monitor timer register tmos xxh 01f1h xxh 01f2h task monitor timer count start flag tmossr xxxx xxx0b 01f3h task monitor timer count source select register tmoscs xxxx 0000b 01f4h task monitor timer protect register tmospr 00h 01f5h 01f6h 01f7h 01f8h 01f9h 01fah 01fbh 01fch 01fdh 01feh 01ffh 0200h 0201h 0202h 0203h 0204h interrupt source select register 4 ifsr4a 00h 0205h interrupt source select register 3 ifsr3a 00h 0206h interrupt source select register 2 ifsr2a 00h 0207h interrupt source select register ifsr 00h 0208h 0209h 020ah 020bh 020ch 020dh 020eh address match interrupt enable register aier xxxx xx00b 020fh address match interrupt enab le register 2 aier2 xxxx xx00b x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 41 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.10 sfr information (10) (1) address register symbol reset value 0210h address match interrupt register 0 rmad0 00h 0211h 00h 0212h x0h 0213h 0214h address match interrupt register 1 rmad1 00h 0215h 00h 0216h x0h 0217h 0218h address match interrupt register 2 rmad2 00h 0219h 00h 021ah x0h 021bh 021ch address match interrupt register 3 rmad3 00h 021dh 00h 021eh x0h 021fh 0220h flash memory control register 0 fmr0 0000 0001b (other than user boot mode) 0010 0001b (user boot mode) 0221h flash memory control register 1 fmr1 00x0 xx0xb 0222h flash memory control register 2 fmr2 xxxx 0000b 0223h flash memory control register 3 fmr3 xxxx 0000b 0224h 0225h 0226h 0227h 0228h 0229h 022ah 022bh 022ch 022dh 022eh 022fh 0230h flash memory control register 6 fmr6 xx0x xx00b 0231h 0232h 0233h 0234h 0235h 0236h 0237h 0238h 0239h 023ah 023bh 023ch 023dh 023eh 023fh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 42 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.11 sfr information (11) (1) address register symbol reset value 0240h 0241h 0242h 0243h 0244h 0245h 0246h 0247h 0248h uart0 transmit/receive mode register u0mr 00h 0249h uart0 bit rate register u0brg xxh 024ah uart0 transmit buffer register u0tb xxh 024bh xxh 024ch uart0 transmit/receive control register 0 u0c0 0000 1000b 024dh uart0 transmit/receive control register 1 u0c1 0000 0010b 024eh uart0 receive buffer register u0rb xxh 024fh xxh 0250h 0251h 0252h uart clock select register uclksel0 x0h 0253h 0254h 0255h 0256h 0257h 0258h uart1 transmit/receive mode register u1mr 00h 0259h uart1 bit rate register u1brg xxh 025ah uart1 transmit buffer register u1tb xxh 025bh xxh 025ch uart1 transmit/receive control register 0 u1c0 0000 1000b 025dh uart1 transmit/receive control register 1 u1c1 0000 0010b 025eh uart1 receive buffer register u1rb xxh 025fh xxh 0260h 0261h 0262h 0263h 0264h uart2 special mode register 4 u2smr4 00h 0265h uart2 special mode register 3 u2smr3 000x 0x0xb 0266h uart2 special mode register 2 u2smr2 x000 0000b 0267h uart2 special mode register u2smr x000 0000b 0268h uart2 transmit/receive mode register u2mr 00h 0269h uart2 bit rate register u2brg xxh 026ah uart2 transmit buffer register u2tb xxh 026bh xxh 026ch uart2 transmit/receive control register 0 u2c0 0000 1000b 026dh uart2 transmit/receive control register 1 u2c1 0000 0010b 026eh uart2 receive buffer register u2rb xxh 026fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 43 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.12 sfr information (12) (1) address register symbol reset value 0270h 0271h 0272h 0273h 0274h 0275h 0276h 0277h 0278h 0279h 027ah 027bh 027ch 027dh 027eh 027fh 0280h 0281h 0282h 0283h 0284h 0285h 0286h 0287h 0288h 0289h 028ah 028bh 028ch 028dh 028eh 028fh 0290h 0291h 0292h 0293h 0294h 0295h 0296h 0297h 0298h uart4 transmit/receive mode register u4mr 00h 0299h uart4 bit rate register u4brg xxh 029ah uart4 transmit buffer register u4tb xxh 029bh xxh 029ch uart4 transmit/receive control register 0 u4c0 0000 1000b 029dh uart4 transmit/receive control register 1 u4c1 0000 0010b 029eh uart4 receive buffer register u4rb xxh 029fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 44 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.13 sfr information (13) (1) address register symbol reset value 02a0h 02a1h 02a2h 02a3h 02a4h 02a5h 02a6h 02a7h 02a8h uart3 transmit/receive mode register u3mr 00h 02a9h uart3 bit rate register u3brg xxh 02aah uart3 transmit buffer register u3tb xxh 02abh xxh 02ach uart3 transmit/receive control register 0 u3c0 0000 1000b 02adh uart3 transmit/receive control register 1 u3c1 0000 0010b 02aeh uart3 receive buffer register u3rb xxh 02afh xxh 02b0h i2c0 data shift register s00 xxh 02b1h 02b2h i2c0 address regi ster 0 s0d0 0000 000xb 02b3h i2c0 control register 0 s1d0 00h 02b4h i2c0 clock control register s20 00h 02b5h i2c0 start/stop condition control register s2d0 0001 1010b 02b6h i2c0 control register 1 s3d0 0011 0000b 02b7h i2c0 control register 2 s4d0 00h 02b8h i2c0 status register 0 s10 0001 000xb 02b9h i2c0 status register 1 s11 xxxx x000b 02bah i2c0 address register 1 s0d1 0000 000xb 02bbh i2c0 address register 2 s0d2 0000 000xb 02bch 02bdh 02beh 02bfh 02c0h time measurement register 0 waveform generation register 0 g1tm0 g1po0 xxh 02c1h xxh 02c2h time measurement register 1 waveform generation register 1 g1tm1 g1po1 xxh 02c3h xxh 02c4h time measurement register 2 waveform generation register 2 g1tm2 g1po2 xxh 02c5h xxh 02c6h time measurement register 3 waveform generation register 3 g1tm3 g1po3 xxh 02c7h xxh 02c8h time measurement register 4 waveform generation register 4 g1tm4 g1po4 xxh 02c9h xxh 02cah time measurement register 5 waveform generation register 5 g1tm5 g1po5 xxh 02cbh xxh 02cch time measurement register 6 waveform generation register 6 g1tm6 g1po6 xxh 02cdh xxh 02ceh time measurement register 7 waveform generation register 7 g1tm7 g1po7 xxh 02cfh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 45 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.14 sfr information (14) (1) address register symbol reset value 02d0h waveform generation control register 0 g1pocr0 0x00 xx00b 02d1h waveform generation control register 1 g1pocr1 0x00 xx00b 02d2h waveform generation control register 2 g1pocr2 0x00 xx00b 02d3h waveform generation control register 3 g1pocr3 0x00 xx00b 02d4h waveform generation control register 4 g1pocr4 0x00 xx00b 02d5h waveform generation control register 5 g1pocr5 0x00 xx00b 02d6h waveform generation control register 6 g1pocr6 0x00 xx00b 02d7h waveform generation control register 7 g1pocr7 0x00 xx00b 02d8h time measurement control register 0 g1tmcr0 00h 02d9h time measurement control register 1 g1tmcr1 00h 02dah time measurement control register 2 g1tmcr2 00h 02dbh time measurement control register 3 g1tmcr3 00h 02dch time measurement control register 4 g1tmcr4 00h 02ddh time measurement control register 5 g1tmcr5 00h 02deh time measurement control register 6 g1tmcr6 00h 02dfh time measurement control register 7 g1tmcr7 00h 02e0h base timer register g1bt xxh 02e1h xxh 02e2h base timer control register 0 g1bcr0 00h 02e3h base timer control register 1 g1bcr1 00h 02e4h time measurement prescaler register 6 g1tpr6 00h 02e5h time measurement prescaler register 7 g1tpr7 00h 02e6h function enable register g1fe 00h 02e7h function select register g1fs 00h 02e8h base timer reset register g1btrr xxh 02e9h xxh 02eah count source divide register g1dv 00h 02ebh 02ech waveform output master enable register g1oer 00h 02edh 02eeh timer s i/o control register 0 g1ior0 00h 02efh timer s i/o control register 1 g1ior1 00h 02f0h interrupt request register g1ir xxh 02f1h interrupt enable register 0 g1ie0 00h 02f2h interrupt enable register 1 g1ie1 00h 02f3h 02f4h 02f5h 02f6h 02f7h 02f8h 02f9h 02fah 02fbh 02fch 02fdh 02feh nmi digital debounce register nddr ffh 02ffh p1_7 digital debounce register p17ddr ffh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 46 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.15 sfr information (15) (1) address register symbol reset value 0300h timer b3/b4/b5 count start flag tbsr 000x xxxxb 0301h 0302h timer a1-1 register ta11 xxh 0303h xxh 0304h timer a2-1 register ta21 xxh 0305h xxh 0306h timer a4-1 register ta41 xxh 0307h xxh 0308h three-phase pwm control register 0 invc0 00h 0309h three-phase pwm control register 1 invc1 00h 030ah three-phase output buffer register 0 idb0 xx11 1111b 030bh three-phase output buffer register 1 idb1 xx11 1111b 030ch dead time timer dtt xxh 030dh timer b2 interrupt generati on frequency set counter ictb2 xxh 030eh position-data-retain function control register pdrf xxxx 0000b 030fh 0310h timer b3 register tb3 xxh 0311h xxh 0312h timer b4 register tb4 xxh 0313h xxh 0314h timer b5 register tb5 xxh 0315h xxh 0316h 0317h 0318h port function control register pfcr 0011 1111b 0319h 031ah 031bh timer b3 mode register tb3mr 00xx 0000b 031ch timer b4 mode register tb4mr 00xx 0000b 031dh timer b5 mode register tb5mr 00xx 0000b 031eh 031fh 0320h count start flag tabsr 00h 0321h 0322h one-shot start flag onsf 00h 0323h trigger select register trgsr 00h 0324h increment/decrement flag udf 00h 0325h 0326h timer a0 register ta0 xxh 0327h xxh 0328h timer a1 register ta1 xxh 0329h xxh 032ah timer a2 register ta2 xxh 032bh xxh 032ch timer a3 register ta3 xxh 032dh xxh 032eh timer a4 register ta4 xxh 032fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 47 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.16 sfr information (16) (1) address register symbol reset value 0330h timer b0 register tb0 xxh 0331h xxh 0332h timer b1 register tb1 xxh 0333h xxh 0334h timer b2 register tb2 xxh 0335h xxh 0336h timer a0 mode register ta0mr 00h 0337h timer a1 mode register ta1mr 00h 0338h timer a2 mode register ta2mr 00h 0339h timer a3 mode register ta3mr 00h 033ah timer a4 mode register ta4mr 00h 033bh timer b0 mode register tb0mr 00xx 0000b 033ch timer b1 mode register tb1mr 00xx 0000b 033dh timer b2 mode register tb2mr 00xx 0000b 033eh timer b2 special mode register tb2sc x000 0000b 033fh 0340h real-time clock second data register rtcsec 00h 0341h real-time clock minute data register rtcmin x000 0000b 0342h real-time clock hour data register rtchr xx00 0000b 0343h real-time clock day data register rtcwk xxxx x000b 0344h real-time clock control register 1 rtccr1 0000 x00xb 0345h real-time clock control register 2 rtccr2 x000 0000b 0346h real-time clock count source select register rtccsr xxx0 0000b 0347h 0348h real-time clock second compare data register rtccsec x000 0000b 0349h real-time clock minute compare data register rtccmin x000 0000b 034ah real-time clock hour compare data register rtcchr x000 0000b 034bh 034ch 034dh 034eh 034fh 0350h 0351h 0352h 0353h ss0 bit counter register ss0br 1111 1000b 0354h ss0 transmit data register ss0tdr ffh 0355h ffh 0356h ss0 receive data register ss0rdr ffh 0357h ffh 0358h ss0 control register h ss0crh 00h 0359h ss0 control register l ss0crl 0111 1101b 035ah ss0 mode register ss0mr 0001 0000b 035bh ss0 enable register ss0er 00h 035ch ss0 status register ss0sr 00h 035dh ss0 mode register 2 ss0mr2 00h 035eh 035fh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 48 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) notes: 1. the blank areas are reserved. no access is allowed. 2. when the csproini bit in the ofs1 address is 0, the reset value is 10000000b. table 4.17 sfr information (17) (1) address register symbol reset value 0360h pull-up control register 0 pur0 00h 0361h pull-up control register 1 pur1 00h 0362h pull-up control register 2 pur2 00h 0363h 0364h 0365h 0366h port control register pcr 0xx0 0xx0b 0367h 0368h 0369h 036ah 036bh 036ch input threshold select register 0 vlt0 00h 036dh input threshold select register 1 vlt1 00h 036eh input threshold select register 2 vlt2 xx00 0000b 036fh 0370h pin assignment control register pacr 0xxx x000b 0371h 0372h 0373h 0374h 0375h 0376h 0377h 0378h 0379h 037ah 037bh 037ch count source protection mode register cspr 00h (2) 037dh watchdog timer refresh register wdtr xxh 037eh watchdog timer start register wdts xxh 037fh watchdog timer control register wdc 00xx xxxxb 0380h 0381h 0382h 0383h 0384h 0385h 0386h 0387h 0388h 0389h 038ah 038bh 038ch 038dh 038eh 038fh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 49 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.18 sfr information (18) (1) address register symbol reset value 0390h dma2 source select register dm2sl 00h 0391h 0392h dma3 source select register dm3sl 00h 0393h 0394h 0395h 0396h 0397h 0398h dma0 source select register dm0sl 00h 0399h 039ah dma1 source select register dm1sl 00h 039bh 039ch 039dh 039eh 039fh 03a0h 03a1h 03a2h open-circuit detection assist function register ainrst xx00 xxxxb 03a3h 03a4h 03a5h 03a6h 03a7h 03a8h 03a9h 03aah 03abh 03ach 03adh 03aeh 03afh 03b0h 03b1h 03b2h 03b3h 03b4h sfr snoop address register crcsar xxxx xxxxb 03b5h 00xx xxxxb 03b6h crc mode register crcmr 0xxx xxx0b 03b7h 03b8h 03b9h 03bah 03bbh 03bch crc data register crcd xxh 03bdh xxh 03beh crc input register crcin xxh 03bfh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 50 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.19 sfr information (19) (1) address register symbol reset value 03c0h a/d register 0 ad0 xxxx xxxxb 03c1h 0000 00xxb 03c2h a/d register 1 ad1 xxxx xxxxb 03c3h 0000 00xxb 03c4h a/d register 2 ad2 xxxx xxxxb 03c5h 0000 00xxb 03c6h a/d register 3 ad3 xxxx xxxxb 03c7h 0000 00xxb 03c8h a/d register 4 ad4 xxxx xxxxb 03c9h 0000 00xxb 03cah a/d register 5 ad5 xxxx xxxxb 03cbh 0000 00xxb 03cch a/d register 6 ad6 xxxx xxxxb 03cdh 0000 00xxb 03ceh a/d register 7 ad7 xxxx xxxxb 03cfh 0000 00xxb 03d0h 03d1h 03d2h 03d3h 03d4h a/d control register 2 adcon2 0000 x00xb 03d5h 03d6h a/d control register 0 adcon0 0000 0xxxb 03d7h a/d control register 1 adcon1 0000 x000b 03d8h d/a0 register da0 00h 03d9h 03dah 03dbh 03dch d/a control register dacon 00h 03ddh 03deh 03dfh 03e0h port p0 register p0 xxh 03e1h port p1 register p1 xxh 03e2h port p0 direction register pd0 00h 03e3h port p1 direction register pd1 00h 03e4h port p2 register p2 xxh 03e5h port p3 register p3 xxh 03e6h port p2 direction register pd2 00h 03e7h port p3 direction register pd3 00h 03e8h port p4 register p4 xxh 03e9h port p5 register p5 xxh 03eah port p4 direction register pd4 00h 03ebh port p5 direction register pd5 00h 03ech port p6 register p6 xxh 03edh port p7 register p7 xxh 03eeh port p6 direction register pd6 00h 03efh port p7 direction register pd7 00h x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 51 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.20 sfr information (20) (1) address register symbol reset value 03f0h port p8 register p8 xxh 03f1h port p9 register p9 xxh 03f2h port p8 direction register pd8 00h 03f3h port p9 direction register pd9 00h 03f4h port p10 register p10 xxh 03f5h 03f6h port p10 direction register pd10 00h 03f7h 03f8h 03f9h 03fah 03fbh 03fch 03fdh 03feh 03ffh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 52 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.21 sfr information (21) (1) address register symbol reset value d1f0h d1f1h d1f2h d1f3h d1f4h d1f5h d1f6h d1f7h d1f8h d1f9h d1fah d1fbh d1fch d1fdh d1feh d1ffh d200h can1 mailbox 0: message identifier c1mb0 xxh d201h xxh d202h xxh d203h xxh d204h d205h can1 mailbox 0: data length xxh d206h can1 mailbox 0: data field xxh d207h xxh d208h xxh d209h xxh d20ah xxh d20bh xxh d20ch xxh d20dh xxh d20eh can1 mailbox 0: time stamp xxh d20fh xxh d210h can1 message identifier c1mb1 xxh d211h xxh d212h xxh d213h xxh d214h d215h can1 mailbox 1: data length xxh d216h can1 mailbox 1: data field xxh d217h xxh d218h xxh d219h xxh d21ah xxh d21bh xxh d21ch xxh d21dh xxh d21eh can1 mailbox 1: time stamp xxh d21fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 53 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.22 sfr information (22) (1) address register symbol reset value d220h can1 mailbox 2: message identifier c1mb2 xxh d221h xxh d222h xxh d223h xxh d224h d225h can1 mailbox 2: data length xxh d226h can1 mailbox 2: data field xxh d227h xxh d228h xxh d229h xxh d22ah xxh d22bh xxh d22ch xxh d22dh xxh d22eh can1 mailbox 2: time stamp xxh d22fh xxh d230h can1 mailbox 3: message identifier c1mb3 xxh d231h xxh d232h xxh d233h xxh d234h d235h can1 mailbox 3: data length xxh d236h can1 mailbox 3: data field xxh d237h xxh d238h xxh d239h xxh d23ah xxh d23bh xxh d23ch xxh d23dh xxh d23eh can1 mailbox 3: time stamp xxh d23fh xxh d240h can1 mailbox 4: message identifier c1mb4 xxh d241h xxh d242h xxh d243h xxh d244h d245h can1 mailbox 4: data length xxh d246h can1 mailbox 4: data field xxh d247h xxh d248h xxh d249h xxh d24ah xxh d24bh xxh d24ch xxh d24dh xxh d24eh can1 mailbox 4: time stamp xxh d24fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 54 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.23 sfr information (23) (1) address register symbol reset value d250h can1 mailbox 5: message identifier c1mb5 xxh d251h xxh d252h xxh d253h xxh d254h d255h can1 mailbox 5: data length xxh d256h can1 mailbox 5: data field xxh d257h xxh d258h xxh d259h xxh d25ah xxh d25bh xxh d25ch xxh d25dh xxh d25eh can1 mailbox 5: time stamp xxh d25fh xxh d260h can1 mailbox 6: message identifier c1mb6 xxh d261h xxh d262h xxh d263h xxh d264h d265h can1 mailbox 6: data length xxh d266h can1 mailbox 6: data field xxh d267h xxh d268h xxh d269h xxh d26ah xxh d26bh xxh d26ch xxh d26dh xxh d26eh can1 mailbox 6: time stamp xxh d26fh xxh d270h can1 mailbox 7: message identifier c1mb7 xxh d271h xxh d272h xxh d273h xxh d274h d275h can1 mailbox 7: data length xxh d276h can1 mailbox 7: data field xxh d277h xxh d278h xxh d279h xxh d27ah xxh d27bh xxh d27ch xxh d27dh xxh d27eh can1 mailbox 7: time stamp xxh d27fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 55 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.24 sfr information (24) (1) address register symbol reset value d280h can1 mailbox 8: message identifier c1mb8 xxh d281h xxh d282h xxh d283h xxh d284h d285h can1 mailbox 8: data length xxh d286h can1 mailbox 8: data field xxh d287h xxh d288h xxh d289h xxh d28ah xxh d28bh xxh d28ch xxh d28dh xxh d28eh can1 mailbox 8: time stamp xxh d28fh xxh d290h can1 mailbox 9: message identifier c1mb9 xxh d291h xxh d292h xxh d293h xxh d294h d295h can1 mailbox 9: data length xxh d296h can1 mailbox 9: data field xxh d297h xxh d298h xxh d299h xxh d29ah xxh d29bh xxh d29ch xxh d29dh xxh d29eh can1 mailbox 9: time stamp xxh d29fh xxh d2a0h can1 mailbox 10: message identifier c1mb10 xxh d2a1h xxh d2a2h xxh d2a3h xxh d2a4h d2a5h can1 mailbox 10: data length xxh d2a6h can1 mailbox 10: data field xxh d2a7h xxh d2a8h xxh d2a9h xxh d2aah xxh d2abh xxh d2ach xxh d2adh xxh d2aeh can1 mailbox 10: time stamp xxh d2afh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 56 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.25 sfr information (25) (1) address register symbol reset value d2b0h can1 mailbox 11: message identifier c1mb11 xxh d2b1h xxh d2b2h xxh d2b3h xxh d2b4h d2b5h can1 mailbox 11: data length xxh d2b6h can1 mailbox 11: data field xxh d2b7h xxh d2b8h xxh d2b9h xxh d2bah xxh d2bbh xxh d2bch xxh d2bdh xxh d2beh can1 mailbox 11: time stamp xxh d2bfh xxh d2c0h can1 mailbox 12: message identifier c1mb12 xxh d2c1h xxh d2c2h xxh d2c3h xxh d2c4h d2c5h can1 mailbox 12: data length xxh d2c6h can1 mailbox 12: data field xxh d2c7h xxh d2c8h xxh d2c9h xxh d2cah xxh d2cbh xxh d2cch xxh d2cdh xxh d2ceh can1 mailbox 12: time stamp xxh d2cfh xxh d2d0h can1 mailbox 13: message identifier c1mb13 xxh d2d1h xxh d2d2h xxh d2d3h xxh d2d4h d2d5h can1 mailbox 13: data length xxh d2d6h can1 mailbox 13: data field xxh d2d7h xxh d2d8h xxh d2d9h xxh d2dah xxh d2dbh xxh d2dch xxh d2ddh xxh d2deh can1 mailbox 13: time stamp xxh d2dfh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 57 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.26 sfr information (26) (1) address register symbol reset value d2e0h can1 mailbox 14: message identifier c1mb14 xxh d2e1h xxh d2e2h xxh d2e3h xxh d2e4h d2e5h can1 mailbox 14: data length xxh d2e6h can1 mailbox 14: data field xxh d2e7h xxh d2e8h xxh d2e9h xxh d2eah xxh d2ebh xxh d2ech xxh d2edh xxh d2eeh can1 mailbox 14: time stamp xxh d2efh xxh d2f0h can1 mailbox 15: message identifier c1mb15 xxh d2f1h xxh d2f2h xxh d2f3h xxh d2f4h d2f5h can1 mailbox 15: data length xxh d2f6h can1 mailbox 15: data field xxh d2f7h xxh d2f8h xxh d2f9h xxh d2fah xxh d2fbh xxh d2fch xxh d2fdh xxh d2feh can1 mailbox 15: time stamp xxh d2ffh xxh d300h can1 mailbox16: message identifier c1mb16 xxh d301h xxh d302h xxh d303h xxh d304h d305h can1 mailbox 16: data length xxh d306h can1 mailbox 16: data field xxh d307h xxh d308h xxh d309h xxh d30ah xxh d30bh xxh d30ch xxh d30dh xxh d30eh can1 mailbox 16: time stamp xxh d30fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 58 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.27 sfr information (27) (1) address register symbol reset value d310h can1 mailbox 17: message identifier c1mb17 xxh d311h xxh d312h xxh d313h xxh d314h d315h can1 mailbox 17: data length xxh d316h can1 mailbox 17: data field xxh d317h xxh d318h xxh d319h xxh d31ah xxh d31bh xxh d31ch xxh d31dh xxh d31eh can1 mailbox 17: time stamp xxh d31fh xxh d320h can1 mailbox 18: message identifier c1mb18 xxh d321h xxh d322h xxh d323h xxh d324h d325h can1 mailbox 18: data length xxh d326h can1 mailbox 18: data field xxh d327h xxh d328h xxh d329h xxh d32ah xxh d32bh xxh d32ch xxh d32dh xxh d32eh can1 mailbox 18: time stamp xxh d32fh xxh d330h can1 mailbox 19: message identifier c1mb19 xxh d331h xxh d332h xxh d333h xxh d334h d335h can1 mailbox 19: data length xxh d336h can1 mailbox 19: data field xxh d337h xxh d338h xxh d339h xxh d33ah xxh d33bh xxh d33ch xxh d33dh xxh d33eh can1 mailbox 19: time stamp xxh d33fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 59 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.28 sfr information (28) (1) address register symbol reset value d340h can1 mailbox 20: message identifier c1mb20 xxh d341h xxh d342h xxh d343h xxh d344h d345h can1 mailbox 20: data length xxh d346h can1 mailbox 20: data field xxh d347h xxh d348h xxh d349h xxh d34ah xxh d34bh xxh d34ch xxh d34dh xxh d34eh can1 mailbox 20: time stamp xxh d34fh xxh d350h can1 mailbox 21: message identifier c1mb21 xxh d351h xxh d352h xxh d353h xxh d354h d355h can1 mailbox 21: data length xxh d356h can1 mailbox 21: data field xxh d357h xxh d358h xxh d359h xxh d35ah xxh d35bh xxh d35ch xxh d35dh xxh d35eh can1 mailbox 21: time stamp xxh d35fh xxh d360h can1 mailbox 22: message identifier c1mb22 xxh d361h xxh d362h xxh d363h xxh d364h d365h can1 mailbox 22: data length xxh d366h can1 mailbox 22: data field xxh d367h xxh d368h xxh d369h xxh d36ah xxh d36bh xxh d36ch xxh d36dh xxh d36eh can1 mailbox 22: time stamp xxh d36fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 60 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.29 sfr information (29) (1) address register symbol reset value d370h can1 mailbox 23: message identifier c1mb23 xxh d371h xxh d372h xxh d373h xxh d374h d375h can1 mailbox 23: data length xxh d376h can1 mailbox 23: data field xxh d377h xxh d378h xxh d379h xxh d37ah xxh d37bh xxh d37ch xxh d37dh xxh d37eh can1 mailbox 23: time stamp xxh d37fh xxh d380h can1 mailbox 24: message identifier c1mb24 xxh d381h xxh d382h xxh d383h xxh d384h d385h can1 mailbox 24: data length xxh d386h can1 mailbox 24: data field xxh d387h xxh d388h xxh d389h xxh d38ah xxh d38bh xxh d38ch xxh d38dh xxh d38eh can1 mailbox 24: time stamp xxh d38fh xxh d390h can1 mailbox 25: message identifier c1mb25 xxh d391h xxh d392h xxh d393h xxh d394h d395h can1 mailbox 25: data length xxh d396h can1 mailbox 25: data field xxh d397h xxh d398h xxh d399h xxh d39ah xxh d39bh xxh d39ch xxh d39dh xxh d39eh can1 mailbox 25: time stamp xxh d39fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 61 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.30 sfr information (30) (1) address register symbol reset value d3a0h can1 mailbox 26: message identifier c1mb26 xxh d3a1h xxh d3a2h xxh d3a3h xxh d3a4h d3a5h can1 mailbox 26: data length xxh d3a6h can1 mailbox 26: data field xxh d3a7h xxh d3a8h xxh d3a9h xxh d3aah xxh d3abh xxh d3ach xxh d3adh xxh d3aeh can1 mailbox 26: time stamp xxh d3afh xxh d3b0h can1 mailbox 27: message identifier c1mb27 xxh d3b1h xxh d3b2h xxh d3b3h xxh d3b4h d3b5h can1 mailbox 27: data length xxh d3b6h can1 mailbox 27: data field xxh d3b7h xxh d3b8h xxh d3b9h xxh d3bah xxh d3bbh xxh d3bch xxh d3bdh xxh d3beh can1 mailbox 27: time stamp xxh d3bfh xxh d3c0h can1 mailbox 28: message identifier c1mb28 xxh d3c1h xxh d3c2h xxh d3c3h xxh d3c4h d3c5h can1 mailbox 28: data length xxh d3c6h can1 mailbox 28: data field xxh d3c7h xxh d3c8h xxh d3c9h xxh d3cah xxh d3cbh xxh d3cch xxh d3cdh xxh d3ceh can1 mailbox 28: time stamp xxh d3cfh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 62 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.31 sfr information (31) (1) address register symbol reset value d3d0h can1 mailbox 29: message identifier c1mb29 xxh d3d1h xxh d3d2h xxh d3d3h xxh d3d4h d3d5h can1 mailbox 29: data length xxh d3d6h can1 mailbox 29: data field xxh d3d7h xxh d3d8h xxh d3d9h xxh d3dah xxh d3dbh xxh d3dch xxh d3ddh xxh d3deh can1 mailbox 29: time stamp xxh d3dfh xxh d3e0h can1 mailbox 30: message identifier c1mb30 xxh d3e1h xxh d3e2h xxh d3e3h xxh d3e4h d3e5h can1 mailbox 30: data length xxh d3e6h can1 mailbox 30: data field xxh d3e7h xxh d3e8h xxh d3e9h xxh d3eah xxh d3ebh xxh d3ech xxh d3edh xxh d3eeh can1 mailbox 30: time stamp xxh d3efh xxh d3f0h can1 mailbox 31: message identifier c1mb31 xxh d3f1h xxh d3f2h xxh d3f3h xxh d3f4h d3f5h can1 mailbox 31: data length xxh d3f6h can1 mailbox 31: data field xxh d3f7h xxh d3f8h xxh d3f9h xxh d3fah xxh d3fbh xxh d3fch xxh d3fdh xxh d3feh can1 mailbox 31: time stamp xxh d3ffh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 63 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.32 sfr information (32) (1) address register symbol reset value d400h can1 mask register 0 c1mkr0 xxh d401h xxh d402h xxh d403h xxh d404h can1 mask register 1 c1mkr1 xxh d405h xxh d406h xxh d407h xxh d408h can1 mask register 2 c1mkr2 xxh d409h xxh d40ah xxh d40bh xxh d40ch can1 mask register 3 c1mkr3 xxh d40dh xxh d40eh xxh d40fh xxh d410h can1 mask register 4 c1mkr4 xxh d411h xxh d412h xxh d413h xxh d414h can1 mask register 5 c1mkr5 xxh d415h xxh d416h xxh d417h xxh d418h can1 mask register 6 c1mkr6 xxh d419h xxh d41ah xxh d41bh xxh d41ch can1 mask register 7 c1mkr7 xxh d41dh xxh d41eh xxh d41fh xxh d420h can1fifo receive id comp are register 0 c1fidcr0 xxh d421h xxh d422h xxh d423h xxh d424h can1fifo receive id comp are register 1 c1fidcr1 xxh d425h xxh d426h xxh d427h xxh d428h can1 mask invalid register c1mkivlr xxh d429h xxh d42ah xxh d42bh xxh d42ch can1 ma ilbox interrupt enable register c1mier xxh d42dh xxh d42eh xxh d42fh xxh d430h to d49fh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 64 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.33 sfr information (33) (1) address register symbol reset value d4a0h can1 message control register 0 c1mctl0 00h d4a1h can1 message control register 1 c1mctl1 00h d4a2h can1 message control register 2 c1mctl2 00h d4a3h can1 message control register 3 c1mctl3 00h d4a4h can1 message control register 4 c1mctl4 00h d4a5h can1 message control register 5 c1mctl5 00h d4a6h can1 message control register 6 c1mctl6 00h d4a7h can1 message control register 7 c1mctl7 00h d4a8h can1 message control register 8 c1mctl8 00h d4a9h can1 message control register 9 c1mctl9 00h d4aah can1 message control register 10 c1mctl10 00h d4abh can1 message control register 11 c1mctl11 00h d4ach can1 message control register 12 c1mctl12 00h d4adh can1 message control register 13 c1mctl13 00h d4aeh can1 message control register 14 c1mctl14 00h d4afh can1 message control register 15 c1mctl15 00h d4b0h can1 message control register 16 c1mctl16 00h d4b1h can1 message control register 17 c1mctl17 00h d4b2h can1 message control register 18 c1mctl18 00h d4b3h can1 message control register 19 c1mctl19 00h d4b4h can1 message control register 20 c1mctl20 00h d4b5h can1 message control register 21 c1mctl21 00h d4b6h can1 message control register 22 c1mctl22 00h d4b7h can1 message control register 23 c1mctl23 00h d4b8h can1 message control register 24 c1mctl24 00h d4b9h can1 message control register 25 c1mctl25 00h d4bah can1 message control register 26 c1mctl26 00h d4bbh can1 message control register 27 c1mctl27 00h d4bch can1 message control register 28 c1mctl28 00h d4bdh can1 message control register 29 c1mctl29 00h d4beh can1 message control register 30 c1mctl30 00h d4bfh can1 message control register 31 c1mctl31 00h x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 65 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.34 sfr information (34) (1) address register symbol reset value d4c0h can1 control register c1ctlr 0000 0101b d4c1h 00h d4c2h can1 status register c1str 0000 0101b d4c3h 00h d4c4h can1 bit configuration register c1bcr 00h d4c5h 00h d4c6h 00h d4c7h can1 clock sele ct register c1clkr 00h d4c8h can1 receive fifo control register c1rfcr 10000000b d4c9h can1 receive fifo pointe r control register c1rfpcr xxh d4cah can1 transmit fifo control register c1tfcr 1000 0000b d4cbh can1 transmit fifo pointer control register c1tfpcr xxh d4cch can1 error interrupt enable register c1eier 00h d4cdh can1 error interrupt source judge register c1eifr 00h d4ceh can1 receive error count register c1recr 00h d4cfh can1 transmit error count register c1tecr 00h d4d0h can1 error code store register c1ecsr 00h d4d1h can1 channel search support register c1cssr xxh d4d2h can1 mailbox search status register c1mssr 1000 0000b d4d3h can1 mailbox search mode register c1msmr xxxx xx00b d4d4h can1 time stamp register c1tsr 00h d4d5h 00h d4d6h can1 acceptance filter support register c1afsr xxh d4d7h xxh d4d8h can1 test control register c1tcr 00h d4d9h d4dah d4dbh d4dch d4ddh d4deh d4dfh d4e0h to d4ffh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 66 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.35 sfr information (35) (1) address register symbol reset value d500h can0 mailbox 0: message identifier c0mb0 xxh d501h xxh d502h xxh d503h xxh d504h d505h can0 mailbox 0: data length xxh d506h can0 mailbox 0: data field xxh d507h xxh d508h xxh d509h xxh d50ah xxh d50bh xxh d50ch xxh d50dh xxh d50eh can0 mailbox 0: time stamp xxh d50fh xxh d510h can0 mailbox 1: message identifier c0mb1 xxh d511h xxh d512h xxh d513h xxh d514h d515h can0 mailbox 1: data length xxh d516h can0 mailbox 1: data field xxh d517h xxh d518h xxh d519h xxh d51ah xxh d51bh xxh d51ch xxh d51dh xxh d51eh can0 mailbox 1: time stamp xxh d51fh xxh d520h can0 mailbox 2: message identifier c0mb2 xxh d521h xxh d522h xxh d523h xxh d524h d525h can0 mailbox 2: data length xxh d526h can0 mailbox 2: data field xxh d527h xxh d528h xxh d529h xxh d52ah xxh d52bh xxh d52ch xxh d52dh xxh d52eh can0 mailbox 2: time stamp xxh d52fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 67 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.36 sfr information (36) (1) address register symbol reset value d530h can0 mailbox 3: message identifier c0mb3 xxh d531h xxh d532h xxh d533h xxh d534h d535h can0 mailbox 3: data length xxh d536h can0 mailbox 3: data field xxh d537h xxh d538h xxh d539h xxh d53ah xxh d53bh xxh d53ch xxh d53dh xxh d53eh can0 mailbox 3: time stamp xxh d53fh xxh d540h can0 mailbox 4: message identifier c0mb4 xxh d541h xxh d542h xxh d543h xxh d544h d545h can0 mailbox 4: data length xxh d546h can0 mailbox 4: data field xxh d547h xxh d548h xxh d549h xxh d54ah xxh d54bh xxh d54ch xxh d54dh xxh d54eh can0 mailbox 4: time stamp xxh d54fh xxh d550h can0 mailbox 5: message identifier c0mb5 xxh d551h xxh d552h xxh d553h xxh d554h d555h can0 mailbox 5: data length xxh d556h can0 mailbox 5: data field xxh d557h xxh d558h xxh d559h xxh d55ah xxh d55bh xxh d55ch xxh d55dh xxh d55eh can0 mailbox 5: time stamp xxh d55fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 68 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.37 sfr information (37) (1) address register symbol reset value d560h can0 mailbox 6: message identifier c0mb6 xxh d561h xxh d562h xxh d563h xxh d564h d565h can0 mailbox 6: data length xxh d566h can0 mailbox 6: data field xxh d567h xxh d568h xxh d569h xxh d56ah xxh d56bh xxh d56ch xxh d56dh xxh d56eh can0 mailbox 6: time stamp xxh d56fh xxh d570h can0 mailbox 7: message identifier c0mb7 xxh d571h xxh d572h xxh d573h xxh d574h d575h can0 mailbox 7: data length xxh d576h can0 mailbox 7: data field xxh d577h xxh d578h xxh d579h xxh d57ah xxh d57bh xxh d57ch xxh d57dh xxh d57eh can0 mailbox 7: time stamp xxh d57fh xxh d580h can0 mailbox 8: message identifier c0mb8 xxh d581h xxh d582h xxh d583h xxh d584h d585h can0 mailbox 8: data length xxh d586h can0 mailbox 8: data field xxh d587h xxh d588h xxh d589h xxh d58ah xxh d58bh xxh d58ch xxh d58dh xxh d58eh can0 mailbox 8: time stamp xxh d58fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 69 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.38 sfr information (38) (1) address register symbol reset value d590h can0 mailbox 9: message identifier c0mb9 xxh d591h xxh d592h xxh d593h xxh d594h d595h can0 mailbox 9: data length xxh d596h can0 mailbox 9: data field xxh d597h xxh d598h xxh d599h xxh d59ah xxh d59bh xxh d59ch xxh d59dh xxh d59eh can0 mailbox 9: time stamp xxh d59fh xxh d5a0h can0 mailbox 10: message identifier c0mb10 xxh d5a1h xxh d5a2h xxh d5a3h xxh d5a4h d5a5h can0 mailbox 10: data length xxh d5a6h can0 mailbox 10: data field xxh d5a7h xxh d5a8h xxh d5a9h xxh d5aah xxh d5abh xxh d5ach xxh d5adh xxh d5aeh can0 mailbox 10: time stamp xxh d5afh xxh d5b0h can0 mailbox 11: message identifier c0mb11 xxh d5b1h xxh d5b2h xxh d5b3h xxh d5b4h d5b5h can0 mailbox 11: data length xxh d5b6h can0 mailbox 11: data field xxh d5b7h xxh d5b8h xxh d5b9h xxh d5bah xxh d5bbh xxh d5bch xxh d5bdh xxh d5beh can0 mailbox 11: time stamp xxh d5bfh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 70 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.39 sfr information (39) (1) address register symbol reset value d5c0h can0 mailbox 12: message identifier c0mb12 xxh d5c1h xxh d5c2h xxh d5c3h xxh d5c4h d5c5h can0 mailbox 12: data length xxh d5c6h can0 mailbox 12: data field xxh d5c7h xxh d5c8h xxh d5c9h xxh d5cah xxh d5cbh xxh d5cch xxh d5cdh xxh d5ceh can0 mailbox 12: time stamp xxh d5cfh xxh d5d0h can0 mailbox 13: message identifier c0mb13 xxh d5d1h xxh d5d2h xxh d5d3h xxh d5d4h d5d5h can0 mailbox 13: data length xxh d5d6h can0 mailbox 13: data field xxh d5d7h xxh d5d8h xxh d5d9h xxh d5dah xxh d5dbh xxh d5dch xxh d5ddh xxh d5deh can0 mailbox 13: time stamp xxh d5dfh xxh d5e0h can0 mailbox 14: message identifier c0mb14 xxh d5e1h xxh d5e2h xxh d5e3h xxh d5e4h d5e5h can0 mailbox 14: data length xxh d5e6h can0 mailbox 14: data field xxh d5e7h xxh d5e8h xxh d5e9h xxh d5eah xxh d5ebh xxh d5ech xxh d5edh xxh d5eeh can0 mailbox 14: time stamp xxh d5efh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 71 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.40 sfr information (40) (1) address register symbol reset value d5f0h can0 mailbox 15: message identifier c0mb15 xxh d5f1h xxh d5f2h xxh d5f3h xxh d5f4h d5f5h can0 mailbox 15: data length xxh d5f6h can0 mailbox 15: data field xxh d5f7h xxh d5f8h xxh d5f9h xxh d5fah xxh d5fbh xxh d5fch xxh d5fdh xxh d5feh can0 mailbox 15: time stamp xxh d5ffh xxh d600h can0 mailbox 16: message identifier c0mb16 xxh d601h xxh d602h xxh d603h xxh d604h d605h can0 mailbox 16: data length xxh d606h can0 mailbox 16: data field xxh d607h xxh d608h xxh d609h xxh d60ah xxh d60bh xxh d60ch xxh d60dh xxh d60eh can0 mailbox 16: time stamp xxh d60fh xxh d610h can0 mailbox 17: message identifier c0mb17 xxh d611h xxh d612h xxh d613h xxh d614h d615h can0 mailbox 17: data length xxh d616h can0 mailbox 17: data field xxh d617h xxh d618h xxh d619h xxh d61ah xxh d61bh xxh d61ch xxh d61dh xxh d61eh can0 mailbox 17: time stamp xxh d61fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 72 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.41 sfr information (41) (1) address register symbol reset value d620h can0 mailbox 18: message identifier c0mb18 xxh d621h xxh d622h xxh d623h xxh d624h d625h can0 mailbox 18: data length xxh d626h can0 mailbox 18: data field xxh d627h xxh d628h xxh d629h xxh d62ah xxh d62bh xxh d62ch xxh d62dh xxh d62eh can0 mailbox 18: time stamp xxh d62fh xxh d630h can0 mailbox 19: message identifier c0mb19 xxh d631h xxh d632h xxh d633h xxh d634h d635h can0 mailbox 19: data length xxh d636h can0 mailbox 19: data field xxh d637h xxh d638h xxh d639h xxh d63ah xxh d63bh xxh d63ch xxh d63dh xxh d63eh can0 mailbox 19: time stamp xxh d63fh xxh d640h can0 mailbox 20: message identifier c0mb20 xxh d641h xxh d642h xxh d643h xxh d644h d645h can0 mailbox 20: data length xxh d646h can0 mailbox 20: data field xxh d647h xxh d648h xxh d649h xxh d64ah xxh d64bh xxh d64ch xxh d64dh xxh d64eh can0 mailbox 20: time stamp xxh d64fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 73 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.42 sfr information (42) (1) address register symbol reset value d650h can0 mailbox 21: message identifier c0mb21 xxh d651h xxh d652h xxh d653h xxh d654h d655h can0 mailbox 21: data length xxh d656h can0 mailbox 21: data field xxh d657h xxh d658h xxh d659h xxh d65ah xxh d65bh xxh d65ch xxh d65dh xxh d65eh can0 mailbox 21: time stamp xxh d65fh xxh d660h can0 mailbox 22: message identifier c0mb22 xxh d661h xxh d662h xxh d663h xxh d664h d665h can0 mailbox 22: data length xxh d666h can0 mailbox 22: data field xxh d667h xxh d668h xxh d669h xxh d66ah xxh d66bh xxh d66ch xxh d66dh xxh d66eh can0 mailbox 22: time stamp xxh d66fh xxh d670h can0 mailbox 23: message identifier c0mb23 xxh d671h xxh d672h xxh d673h xxh d674h d675h can0 mailbox 23: data length xxh d676h can0 mailbox 23: data field xxh d677h xxh d678h xxh d679h xxh d67ah xxh d67bh xxh d67ch xxh d67dh xxh d67eh can0 mailbox 23: time stamp xxh d67fh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 74 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.43 sfr information (43) (1) address register symbol reset value d680h can0 mailbox 24: message identifier c0mb24 xxh d681h xxh d682h xxh d683h xxh d684h d685h can0 mailbox 24: data length xxh d686h can0 mailbox 24: data field xxh d687h xxh d688h xxh d689h xxh d68ah xxh d68bh xxh d68ch xxh d68dh xxh d68eh can0 mailbox 24: time stamp xxh d68fh xxh d690h can0 mailbox 25: message identifier c0mb25 xxh d691h xxh d692h xxh d693h xxh d694h d695h can0 mailbox 25: data length xxh d696h can0 mailbox 25: data field xxh d697h xxh d698h xxh d699h xxh d69ah xxh d69bh xxh d69ch xxh d69dh xxh d69eh can0 mailbox 25: time stamp xxh d69fh xxh d6a0h can0 mailbox 26: message identifier c0mb26 xxh d6a1h xxh d6a2h xxh d6a3h xxh d6a4h d6a5h can0 mailbox 26: data length xxh d6a6h can0 mailbox 26: data field xxh d6a7h xxh d6a8h xxh d6a9h xxh d6aah xxh d6abh xxh d6ach xxh d6adh xxh d6aeh can0 mailbox 26: time stamp xxh d6afh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 75 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.44 sfr information (44) (1) address register symbol reset value d6b0h can0 mailbox 27: message identifier c0mb27 xxh d6b1h xxh d6b2h xxh d6b3h xxh d6b4h d6b5h can0 mailbox 27: data length xxh d6b6h can0 mailbox 27: data field xxh d6b7h xxh d6b8h xxh d6b9h xxh d6bah xxh d6bbh xxh d6bch xxh d6bdh xxh d6beh can0 mailbox 27: time stamp xxh d6bfh xxh d6c0h can0 mailbox 28: message identifier c0mb28 xxh d6c1h xxh d6c2h xxh d6c3h xxh d6c4h d6c5h can0 mailbox 28: data length xxh d6c6h can0 mailbox 28: data field xxh d6c7h xxh d6c8h xxh d6c9h xxh d6cah xxh d6cbh xxh d6cch xxh d6cdh xxh d6ceh can0 mailbox 28: time stamp xxh d6cfh xxh d6d0h can0 mailbox 29: message identifier c0mb29 xxh d6d1h xxh d6d2h xxh d6d3h xxh d6d4h d6d5h can0 mailbox 29: data length xxh d6d6h can0 mailbox 29: data field xxh d6d7h xxh d6d8h xxh d6d9h xxh d6dah xxh d6dbh xxh d6dch xxh d6ddh xxh d6deh can0 mailbox 29: time stamp xxh d6dfh xxh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 76 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.45 sfr information (45) (1) address register symbol reset value d6e0h can0 mailbox 30: message identifier c0mb30 xxh d6e1h xxh d6e2h xxh d6e3h xxh d6e4h d6e5h can0 mailbox 30: data length xxh d6e6h can0 mailbox 30: data field xxh d6e7h xxh d6e8h xxh d6e9h xxh d6eah xxh d6ebh xxh d6ech xxh d6edh xxh d6eeh can0 mailbox 30: time stamp xxh d6efh xxh d6f0h can0 mailbox 31: message identifier c0mb31 xxh d6f1h xxh d6f2h xxh d6f3h xxh d6f4h d6f5h can0 mailbox 31: data length xxh d6f6h can0 mailbox 31: data field xxh d6f7h xxh d6f8h xxh d6f9h xxh d6fah xxh d6fbh xxh d6fch xxh d6fdh xxh d6feh can0 mailbox 31: time stamp xxh d6ffh xxh d700h can0 mask register 0 c0mkr0 xxh d701h xxh d702h xxh d703h xxh d704h can0 mask register 1 c0mkr1 xxh d705h xxh d706h xxh d707h xxh d708h can0 mask register 2 c0mkr2 xxh d709h xxh d70ah xxh d70bh xxh d70ch can0 mask register 3 c0mkr3 xxh d70dh xxh d70eh xxh d70fh xx h x: undefin ed www.datasheet.in
rej03b0267-0101 rev.1.01 page 77 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.46 sfr information (46) (1) address register symbol reset value d710h can0 mask register 4 c0mkr4 xxh d711h xxh d712h xxh d713h xxh d714h can0 mask register 5 c0mkr5 xxh d715h xxh d716h xxh d717h xxh d718h can0 mask register 6 c0mkr6 xxh d719h xxh d71ah xxh d71bh xxh d71ch can0 mask register 7 c0mkr7 xxh d71dh xxh d71eh xxh d71fh xxh d720h can0 fifo receive id compare register 0 c0fidcr0 xxh d721h xxh d722h xxh d723h xxh d724h can0 fifo receive id compare register 1 c0fidcr1 xxh d725h xxh d726h xxh d727h xxh d728h can0 mask invalid register c0mkivlr xxh d729h xxh d72ah xxh d72bh xxh d72ch can0 mailbox interrupt enable register c0mier xxh d72dh xxh d72eh xxh d72fh xxh d730h to d79fh d7a0h can0 message control register 0 c0mctl0 00h d7a1h can0 message control register 1 c0mctl1 00h d7a2h can0 message control register 2 c0mctl2 00h d7a3h can0 message control register 3 c0mctl3 00h d7a4h can0 message control register 4 c0mctl4 00h d7a5h can0 message control register 5 c0mctl5 00h d7a6h can0 message control register 6 c0mctl6 00h d7a7h can0 message control register 7 c0mctl7 00h d7a8h can0 message control register 8 c0mctl8 00h d7a9h can0 message control register 9 c0mctl9 00h d7aah can0 message control register 10 c0mctl10 00h d7abh can0 message control register 11 c0mctl11 00h d7ach can0 message control register 12 c0mctl12 00h d7adh can0 message control register 13 c0mctl13 00h d7aeh can0 message control register 14 c0mctl14 00h d7afh can0 message control register 15 c0mctl15 00h x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 78 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) note: 1. the blank areas are reserved. no access is allowed. table 4.47 sfr information (47) (1) address register symbol reset value d7b0h can0 message control register 16 c0mctl16 00h d7b1h can0 message control register 17 c0mctl17 00h d7b2h can0 message control register 18 c0mctl18 00h d7b3h can0 message control register 19 c0mctl19 00h d7b4h can0 message control register 20 c0mctl20 00h d7b5h can0 message control register 21 c0mctl21 00h d7b6h can0 message control register 22 c0mctl22 00h d7b7h can0 message control register 23 c0mctl23 00h d7b8h can0 message control register 24 c0mctl24 00h d7b9h can0 message control register 25 c0mctl25 00h d7bah can0 message control register 26 c0mctl26 00h d7bbh can0 message control register 27 c0mctl27 00h d7bch can0 message control register 28 c0mctl28 00h d7bdh can0 message control register 29 c0mctl29 00h d7beh can0 message control register 30 c0mctl30 00h d7bfh can0 message control register 31 c0mctl31 00h d7c0h can0 control register c0ctlr 0000 0101b d7c1h 00h d7c2h can0 status register c0str 0000 0101b d7c3h 00h d7c4h can0 bit configuration register c0bcr 00h d7c5h 00h d7c6h 00h d7c7h can0 clock sele ct register c0clkr 00h d7c8h can0 receive fifo control register c0rfcr 1000 0000b d7c9h can0 receive fifo pointe r control register c0rfpcr xxh d7cah can0 transmit fifo control register c0tfcr 1000 0000b d7cbh can0 transmit fifo pointer control register c0tfpcr xxh d7cch can0 error interrupt enable register c0eier 00h d7cdh can0 error interrupt source judge register c0eifr 00h d7ceh can0 receive error count register c0recr 00h d7cfh can0 transmit error count register c0tecr 00h d7d0h can0 error code store register c0ecsr 00h d7d1h can0 channel search support register c0cssr xxh d7d2h can0 mailbox search status register c0mssr 1000 0000b d7d3h can0 mailbox search mode register c0msmr 0000 0000b d7d4h can0 time stamp register c0tsr 00h d7d5h 00h d7d6h can0 acceptance filter support register c0afsr xxh d7d7h xxh d7d8h can0 test control register c0tcr 00h d7d9h d7dah d7dbh d7dch d7ddh d7deh d7dfh x: undefined www.datasheet.in
rej03b0267-0101 rev.1.01 page 79 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) 4.2 notes on sfrs 4.2.1 register settings table 4.48 lists registers with write-only bits a nd registers whose function differs between reading and writing. set these registers with immediate values. do not use read-modify- write instructions. when establishing the next value by altering the existing value, write the existing value to the ram as well as to the register. transfer the next value to the register after making changes in the ram. read-modify-write instructions can be used when writing to the no register bits. table 4.48 registers with write-only bits address register symbol 0249h uart0 bit rate register u0brg 024bh to 024ah uart0 transmit buffer register u0tb 0259h uart1 bit rate register u1brg 025bh to 025ah uart1 transmit buffer register u1tb 0269h uart2 bit rate register u2brg 026bh to 026ah uart2 transmit buffer register u2tb 0299h uart4 bit rate register u4brg 029bh to 029ah uart4 transmit buffer register u4tb 02a9h uart3 bit rate register u3brg 02abh to 02aah uart3 transmit buffer register u3tb 02b6h i2c0 control register 1 s3d0 02b8h i2c0 status register 0 s10 0303h to 0302h timer a1-1 register ta11 0305h to 0304h timer a2-1 register ta21 0307h to 0306h timer a4-1 register ta41 030ah three-phase output buffer register 0 idb0 030bh three-phase output buffer register 1 idb1 030ch dead time timer dtt 030dh timer b2 interrupt generation frequency set counter ictb2 0327h to 0326h timer a0 register ta0 0329h to 0328h timer a1 register ta1 032bh to 032ah timer a2 register ta2 032dh to 032ch timer a3 register ta3 032fh to 032eh timer a4 register ta4 037dh watchdog timer refresh register wdtr 037eh watchdog timer start register wdts d4c9h can1 receive fifo pointer control register c1rfpcr d4cbh can1 transmit fifo poin ter control register c1tfpcr d7c9h can0 receive fifo pointer control register c0rfpcr d7cbh can0 transmit fifo po inter control register c0tfpcr www.datasheet.in
rej03b0267-0101 rev.1.01 page 80 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 4. special function registers (sfrs) table 4.49 read-modify-write instructions function mnemonic transfer mov dir bit processing bclr, bm cnd , bnot, bset, btstc, and btsts shifting rolc, rorc, rot, sha, and shl arithmetic operation abs, adc, adcf, add, dec, div, divu, divx, exts, inc, mul, mulu, neg, sbb, and sub decimal operation dadc, dadd, dsbb, and dsub logical operation and, not, or, and xor jump adjnz, sbjnz www.datasheet.in
rej03b0267-0101 rev.1.01 page 81 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics 5. electrical characteristics j-version 5.1 electrical characteristics (j-v ersion, common to 3 v and 5 v) 5.1.1 absolute maximum rating note: 1. maximum value is 6.5 v. table 5.1 absolute maximum ratings symbol characteristic condition value unit v cc supply voltage v cc = av cc -0.3 to 6.5 v av cc analog supply voltage v cc = av cc -0.3 to 6.5 v v ref analog reference voltage ? 0.3 to v cc + 0.1 (1) v v i input voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 top9_7, p10_0 to p10_7 xin, reset , cnvss, vref -0.3 to v cc + 0.3 v v o output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xout -0.3 to v cc + 0.3 v p d power consumption -40c t opr 85c 300 mw t opr operating temperature range while cpu operation -40 to 85 c while flash memory program and erase operation programming area 0 to 60 data area -40 to 85 t stg storage temperature range -65 to 150 c www.datasheet.in
rej03b0267-0101 rev.1.01 page 82 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version 5.1.2 recommended operating conditions notes: 1. the mean output current is the mean value within 100ms. 2. refer to figure 5.1 ?main clock input oscillation frequency, pll clock oscillation frequency? for the relationship between ma in clock oscillation frequency/pll clock os cillation frequency and supply voltage. table 5.2 operating conditions (1) v cc = 3.0 v to 5.5 v, t opr = -40c to 85c unless otherwise specified. symbol characteristic value unit min. typ. max. v cc supply voltage 3.0 5.5 v av cc analog supply voltage v cc v v ss ground voltage 0v av ss analog ground voltage 0v v ih high level input voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 input level 0.50 v cc 0.7 v cc v cc v input level 0.70 v cc 0.85v cc v cc v xin, reset , cnvss 0.8 v cc v cc sdamm, sclmm when i 2 c-bus input level selected 0.7 v cc v cc v when smbus input level selected 2.1 v cc v v il low level input voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 input level 0.50 v cc 0 0.3 v cc v input level 0.70 v cc 0 0.45v cc v xin, reset , cnvss 0 0.2 v cc v sdamm, sclmm when i 2 c-bus input level selected 0 0.3 v cc v when smbus input level selected 0 0.8 v i oh(sum) high peak output current sum of i oh(peak) at p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 -80.0 ma i oh(peak) high level peak output current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 -10.0 ma i oh(avg) high level average output current (1) p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 -5.0 ma i ol(sum) low peak output current sum of i ol(peak) at p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 80.0 ma i ol(peak) low level peak output current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 10.0 ma i ol(avg) low level average output current (1) p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 5.0 ma f (xin) main clock input os cillation frequency (2) 02 0 m h z f (xcin) sub clock oscillation oscillator frequency 32.768 50 khz f (pll) pll clock oscillation frequency (2) 10 32 mhz f (bclk) cpu operation frequency 0 32 mhz t su(pll) wait time to stabilize pll frequency synthesizer 1 ms www.datasheet.in
rej03b0267-0101 rev.1.01 page 83 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version figure 5.1 main clock input o scillation frequency, pll cl ock oscillation frequency note: 1. the device is operationally guaranteed under these operating conditions. figure 5.2 ripple waveform table 5.3 recommended operating conditions (2/2) (1) v cc = 3.0 to 5.5 v, v ss = 0 v, and t opr = -40 c to 85 c unless otherwise specified. the ripple voltage must not exceed v r(vcc) and/or dv r(vcc) /dt. symbol parameter standard unit min. typ. max. v r(vcc) allowable ripple voltage v cc = 5.0 v 0.5 vp-p v cc = 3.0 v 0.3 vp-p dv r(vcc) /dt ripple voltage falling gradient v cc = 5.0 v 0.3 v/ms v cc = 3.0 v 0.3 v/ms maximum operating frequency [mhz] main clock input oscillation frequency pll clock oscillation frequency 20.0 10.0 0.0 32.0 10.0 0.0 maximum operating frequency [mhz] 3.0 5.5 3.0 5.5 vcc [v] (main clock: no division) vcc [v] (pll clock oscillation) 32.0 mhz 20.0 mhz f (xin) f (xin) v r( ) v cc v cc www.datasheet.in
rej03b0267-0101 rev.1.01 page 84 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version 5.1.3 a/d conversion characteristics notes: 1. use when av cc = v cc 2. flash memory rewrite disabled. except for the analog input pin, set the pins to be measured as input ports and connect them to v ss . see figure 5.3 ?a/d accuracy measure circuit?. 3. when analog input voltage is over reference voltage, the result of a/d conversion is 3ffh. figure 5.3 a/d accuracy measure circuit table 5.4 a/d conversion characteristics (1) v cc = av cc = v ref = 3.0 to 5.5 v, v ss = av ss = 0 v at t opr = -40 c to 85c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. ?? resolution v ref = v cc 10 bits i nl integral non-linearity error v ref = v cc = 5.0 v (2) 3 lsb v ref = v cc = 3.3 v (2) 5 lsb ?? absolute accuracy v ref = v cc = 5.0 v (2) 3 lsb v ref = v cc = 3.3 v (2) 5 lsb ad a/d operating clock frequency 4.0 v v cc 5.5 v 225mhz 3.2 v v cc 4.0 v 216mhz 3.0 v v cc 3.2 v 210mhz ?? tolerance level impedance 3 k d nl differential non-linearity error (2) 1 lsb ?? offset error (2) 3 lsb ?? gain error (2) 3 lsb t conv 10-bit conversion time v ref = v cc = 5v, ad = 25 mhz 1.60 s t samp sampling time 0.6 s v ref reference voltage 3.0 v cc v v ia analog input voltage (3) 0 v ref v an analog input an: one of the analog input pin p0 to p10: i/o pins other than an p0 to p10 www.datasheet.in
rej03b0267-0101 rev.1.01 page 85 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version 5.1.4 d/a conversion characteristics notes: 1. this applies when using one d/a converter, with the d/ a register for the unused d/a converter set to 00h. 2. the current consumption of the a/d converter is not included. also, the i vref of the d/a converter will flow even if the adstby bit in the adcon1 register is 0 (a/d operation stopped (standby)). table 5.5 d/a conver sion characteristics v cc = av cc = v ref = 3.0 to 5.5 v, v ss = av ss = 0 v at t opr = -40 c to 85c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. - resolution 8bits - absolute accuracy 2.5 lsb t su setup time 3 s r o output resistance 568.2k i vref reference power supply input current see notes 1 and 2 1.5 ma www.datasheet.in
rej03b0267-0101 rev.1.01 page 86 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version 5.1.5 flash memory el ectrical characteristics notes: 1. set the pm17 bit in the pm1 register to 1 (one wait). 2. when the frequency is over this value, set the fmr17 bit in the fmr1 register to 0 (one wait) or the pm17 bit in the pm1 register to 1 (one wait) 3. set the pm17 bit in the pm1 register to 1 (one wait). when using the 125 khz on-chip oscillator clock or sub clock as the cpu clock source, a wait is not necessary. table 5.6 cpu clock when operating flash memory (f (bclk) ) v cc = 3.0 to 5.5 v at t opr = -40 c to 85 c, unless otherwise specified. symbol parameter conditions standard unit min. typ. max. - cpu rewrite mode 16 (1) mhz f (slow_r) slow read mode 5 (3) mhz - low current consumption read mode fc 35 khz data flash read 20 (2) mhz www.datasheet.in
rej03b0267-0101 rev.1.01 page 87 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version notes: 1. definition of prog ram and erase cycles: the program and erase cycles refer to the number of per-b lock erasures. if the program and erase cycles are n (n = 1,000), each block can be erased n times. for exam ple, if a 64 kbyte block is erased after writing two word data 16,384 times, each to a different address, this counts as one program and erase cycles. data cannot be written to the same address more than once wi thout erasing the block (rewrite prohibited). 2. cycles to guarantee all electrical characteristics afte r program and erase. (1 to min. value can be guaranteed). 3. in a system that executes multiple programming operations, the actual eras ure count can be reduced by writing to sequential addresses in turn so that as much of the block as possible is used up before performing an erase operation. it is advisable to retain data on the erasure cycles of each block and limit the number of erase operations to a certain number. 4. if an error occurs during block erase, attempt to execute the clear status register command, then execute the block erase command at least three times until the erase error does not occur. 5. customers desiring program/erase failure rate information should contact a renesas electronics sales office. 6. the data hold time includes time that the po wer supply is off or the clock is not supplied. 7. after an erase start or erase restart, if an interval of at least 20 ms is not set before the next suspend request, the erase sequence cannot be completed. table 5.7 flash memory (program ro m 1, 2) electrical characteristics v cc = 3.0 to 5.5 v at t opr = 0 c to 60 c, unless otherwise specified. symbol parameter conditions standard unit min. typ. max. - program/erase cycles (1, 3, 4) v cc = 3.3 v, t opr = 25 c 1,000 (2) times - two words program time v cc = 3.3 v, t opr = 25 c 150 4000 s lock bit program time v cc = 3.3 v, t opr = 25 c 70 3000 s - block erase time v cc = 3.3 v, t opr = 25 c 0.2 3.0 s t d(sr-sus) time delay from suspend request until suspend ms - interval from erase start/restart until following suspend request 0 s - suspend interval necessary for auto-erasure to complete (7) 20 ms - time from suspend until erase restart s - program, erase voltage 3.0 5.5 v - read voltage topr = -40 c to 85 c 3.0 5.5 v - program, erase temperature 0 60 c t ps flash memory circuit stabilization wait time 50 s - data hold time (6) ambient temperature = 55 c 20 year 5 3 f bclk () --------------- -+ 30 1 f bclk () --------------- -+ www.datasheet.in
rej03b0267-0101 rev.1.01 page 88 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version 1. definition of pr ogram and erase cycles the program and erase cycles refer to the number of per-block erasures. if the program and erase cycles are n (n = 10,000), each block c an be erased n times. for example, if a 4 kbyte block is erased after writing two word data 1,024 times, each to a different address, this counts as one program and erase cycles. data cannot be written to the same address more than once without erasing the block (rewrite prohibited). 2. cycles to guarantee all electrical characteristics afte r program and erase. (1 to min. value can be guaranteed). 3. in a system that executes multiple programming operations, the actual eras ure count can be reduced by writing to sequential addresses in turn so that as much of the block as possible is used up before performing an erase operation. for example, when programming groups of 16 bytes, the effective number of rewrites can be minimized by programming up to 256 groups before erasi ng them all in one operation. in addition, averaging the erasure cycles between blocks a and b can further reduce th e actual erasure cycles. it is also advisable to retain data on the erasure cycles of each block and limit t he number of erase operatio ns to a certain number. 4. if an error occurs during block erase, attempt to execute the clear status register command, then execute the block erase command at least three times until the erase error does not occur. 5. customers desiring program/erase failure rate information should contact a renesas electronics sales office. 6. the data hold time includes time that the po wer supply is off or the clock is not supplied. 7. after an erase start or erase restart, if an interval of at least 20 ms is not set before the next suspend request, the erase sequence cannot be completed. table 5.8 flash memory (data flash) electrical characteristics v cc = 3.0 to 5.5 v at t opr = -40 c to 85 c, unless otherwise specified. symbol parameter conditions standard unit min. typ. max. - program/erase cycles (1, 3, 4) v cc = 3.3 v, t opr = 25 c 10,000 (2) times - two words program time v cc = 3.3 v, t opr = 25 c 300 4000 s - lock bit program time v cc = 3.3 v, t opr = 25 c 140 3000 s - block erase time v cc = 3.3 v, t opr = 25 c 0.2 3.0 s t d(sr-sus) time delay from suspend request until suspend ms - interval from erase start/restart until following suspend request 0 s - suspend interval necessary for auto-erasure to complete (7) 20 ms - time from suspend until erase restart s - program, erase voltage 3.0 5.5 v - read voltage 3.0 5.5 v - program, erase temperature ? 40 85 c t ps flash memory circuit stabilization wait time 50 s - data hold time (6) ambient temperature = 55 c 20 year 5 3 f bclk () --------------- -+ 30 1 f bclk () --------------- -+ www.datasheet.in
rej03b0267-0101 rev.1.01 page 89 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version 5.1.6 e 2 prom emulation data flash notes: 1. definition of program/erase cycles definition this value represents the number of erasure per block. if the flash memory is programmed/erased n times, each block can be erased n times. i.e. if a word write is performed in different 16 ad dresses in a block and then the block is erased, it is considered the programming/erasure is performed just once. however a write in the same address more than once for one erasure is disabled. (overwrite disabled). 2. the data hold time includes the periods when the supply voltage is not applied and no clock is provided. 3. this data hold time includes (7000) hours in ambient temperature = 85c. 4. please contact a renesas electronics sales office regarding data retention time other than the above. table 5.9 e 2 prom emulation data flash electrical characteristics vcc = 3.0 to 5.5 v, vss = 0 v, and t opr = -40 c to 85 c unless otherwise specified. symbol characteristic value unit min. typ. max. ? program/erase cycles (1) 100000 times ? word program time (2-byte program) 100 2000 s ? read time (2-byte read) 1 s ? block erase time (32-byte block) 15 200 ms t ps flash memory circuit stabilization wait time (sleep mode to normal mode) 50 s ? data hold time (2) ambient temperature = 55c (3, 4) 20 years www.datasheet.in
rej03b0267-0101 rev.1.01 page 90 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version 5.1.7 voltage detector and power supp ly circuit electrical characteristics note: 1. necessary time until the voltage detector operates when setting to 1 again after setting the vc25 bit in the vcr2 register to 0. note: 1. necessary time until the voltage detector operates after setting to 1 again after setting the vc27 bit in the vcr2 register to 0. table 5.10 voltage detector 0 electrical characteristics the measurement condition is v cc = 3.0 to 5.5 v, t opr = -40 c to 85 c, unless otherw ise specified. symbol parameter condition standard unit min. typ. max. v det0 voltage detection level v det0 when v cc is falling. 2.70 2.85 3.00 v t d(e-a) waiting time until voltage detector operation starts (1) v cc = 3.0 to 5.0 v 100 s table 5.11 voltage detector 2 electrical characteristics the measurement condition is v cc = 3.0 to 5.5 v, t opr = -40 c to 85 c, unless otherw ise specified. symbol parameter condition standard unit min. typ. max. vdet2_0 voltage detection level vdet2_0 when v cc is falling 3.21 v vdet2_1 voltage detection level vdet2_1 3.36 v vdet2_2 voltage detection level vdet2_2 3.51 v vdet2_3 voltage detection level vdet2_3 3.66 v vdet2_4 voltage detection level vdet2_4 3.51 3.81 4.11 v vdet2_5 voltage detection level vdet2_5 3.96 v vdet2_6 voltage detection level vdet2_6 4.10 v vdet2_7 voltage detection level vdet2_7 4.25 v - hysteresis width at the rising of v cc in voltage detector 2 0.15 v t d(e-a) waiting time until voltage detector operation starts (1) v cc = 3.0 to 5.0 v 100 s www.datasheet.in
rej03b0267-0101 rev.1.01 page 91 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version note: 1. to use the power-on reset function, enable voltage monitor 0 reset by setting the lvdas bit in the ofs1 address to 0. figure 5.4 power-on reset circui t electrical characteristics note: 1. when v cc = 5 v. table 5.12 power-on reset circuit the measurement condition is t opr = -40 c to 85 c, unless otherwise specified. symbol parameter condition standard unit min. typ. max. t rth external power v cc rise gradient 2.0 50000 mv/ms t fth external power v cc fall gradient 50000 mv/ms v por voltage at which power-on reset enabled (1) 0.1 v t w(por) hold time at which power-on reset enabled 1.0 ms table 5.13 power supply circuit timing characteristics symbol parameter measuring condition standard unit min. typ. max. t d(p-r) time for internal power supply stabilization during powering-on vcc = 3.0 v to 5.5v 5ms t d(r-s) stop release time 300 s t d(w-s) low power mode wait mode release time 300 s vpor internal reset signal 1 f oco-s 128 external power v cc v det0 t rth t w(por) t rth v det0 1 f oco-s 128 t fth www.datasheet.in
rej03b0267-0101 rev.1.01 page 92 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version figure 5.5 power supply circuit timing diagram 5.1.8 oscillation circuit electrical characteristics table 5.14 on-chip oscillator oscillation circuit electrical characteristics v cc = 3.0 to 5.5 v, t opr = ? 40 c to 85 c, unless otherwise specified symbol characteristic value unit min. typ. max. f oco-s 125 khz on-chip oscillator oscillation frequency 100 125 150 khz f oco40m 40 mhz on-chip oscillator oscillation frequency 32 40 48 mhz &38forfn 7lphwrvwdelol]hlqwhuqdovxsso\ yrowdjhgxulqjsrzhulqjrq d ,qwhuuxswwrh[lwiurpvwrsprgh e ,qwhuuxswwrh[lwiurpzdlwprgh &38forfn d e 6wrs 2shudwh 5hfrpphqghg rshudwlqj yrowdjh 9rowdjhghwhfwlrqflufxlw w  g 35 6723uhohdvhwlph w  g 56 w  g :6 /rzsrzhufrqvxpswlrq prghzdlwprghh[lwwlph 9rowdjhghwhfwlrqflufxlw rshudwlrqvwduwwlph w  g ($ w g 35 w g 56 w g :6 w g ($ v cc vc25, vc27 www.datasheet.in
rej03b0267-0101 rev.1.01 page 93 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics 5.2 electrical character istics (j-version, v cc = 5 v) 5.2.1 electrical characteristics j-version, v cc = 5 v table 5.15 electrical characteristics (1) v cc = 4.2 to 5.5 v, v ss = 0 v at t opr = -40 c to 85 c, f (bclk) = 32 mhz unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. v oh high output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i oh = ? 5 ma v cc? 2.0 v cc v v oh high output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7,p9_0 to p9_7, p10_0 to p10_7 i oh = ? 200 av cc? ? 0.3 v cc v v oh high output voltage xout high power i oh = ? 1 ma v cc? ? 2.0 v cc v low power i oh = ? 0.5 ma v cc? ? 2.0 v cc high output voltage xcout high power with no load applied 2.5 v low power with no load applied 1.6 v ol low output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i ol = 5 ma 2.0 v v ol low output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i ol = 200 a 0.45 v v ol low output voltage xout high power i ol = 1 ma 2.0 v low power i ol = 0.5 ma 2.0 low output voltage xcout high power with no load applied 0 v low power with no load applied 0 v t +-v t- hysteresis ta0in to ta4in, tb0in to tb5in, int0 to int7 , nmi , adtrg , cts0 to cts3 , scl2, sda2, clk0 to clk4, ta0out to ta4out, ki0 to ki3 , rxd0 to rxd4, zp, idu, idw, i dv, sd, inpc1_0 to inpc1_7, ssi0, ssck0 , scs0 , lin0in, crx0, crx1 0.2 0.4v cc v v t+ -v t- hysteresis reset 0.2 2.5 v v t+ -v t- hysteresis xin 0.2 0.8 v i ih high input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset , cnvss v i = 5 v 5.0 a i il low input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset , cnvss v i = 0 v ? 5.0 a r pullup pull-up resistance p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 v i = 0 v 30 50 170 k r fxin feedback resistance xin 1.5 m r fxcin feedback resistance xcin 15 m v ram ram retention voltage at stop mode 2.0 v www.datasheet.in
rej03b0267-0101 rev.1.01 page 94 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v note: 1. this indicates the memory in which the program to be executed exists. table 5.16 electrical characteristics (2) t opr = ? 40 c to 85 c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. i cc power supply current (v cc = 4.2v to 5.5 v) in single-chip mode, the output pins are open and other pins are v ss high speed mode f (bclk) = 32 mhz, xin = 8 mhz (square wave), pll multiply-by-8 125 khz on-chip oscillator operates 25 45 ma f (bclk) = 20 mhz, xin = 20 mhz (square wave), 125 khz on-chip oscillator operates 21 39 ma f (bclk) = 16 mhz, xin = 16 mhz (square wave), 125 khz on-chip oscillator operates 17 ma 40 mhz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates no division 21 39 ma main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates divide-by-8 6m a 125 khz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates divide-by-8 fmr22 = fmr23 = 1 (low-current consumption read mode) 190 580 a low power mode f (bclk) = 32 khz on flash memory (2) fmr22 = fmr23 = 1 (low-current consumption read mode) 200 a wait mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 25 c 25 a main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 85 c 55 a stop mode t opr = 25 c 315 a t opr = 85 c 30 a during flash memory program f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 5.0 v 20.0 ma during flash memory erase f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 5.0 v 30.0 ma i det2 low voltage detection dissipation current 3 a i det0 reset area detection dissipation current 6 a www.datasheet.in
rej03b0267-0101 rev.1.01 page 95 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v 5.2.2 timing requirements (per ipheral functions and others) (v cc = 5 v, v ss = 0 v, at t opr = - 40 c to 85 c unless otherwise specified) 5.2.2.1 reset input ( reset input) figure 5.6 reset input ( reset input) 5.2.2.2 external clock input note: 1. the condition is v cc = 5.0v. figure 5.7 external clock input (xin input) table 5.17 reset input ( reset input) symbol parameter standard unit min. max. t w(rstl) reset input low pulse width 10 s table 5.18 external clock input (xin input) (1) symbol parameter standard unit min. max. t c external clock input cycle time 50 ns t w(h) external clock input high pulse width 20 ns t w(l) external clock input low pulse width 20 ns t r external clock rise time 9ns t f external clock fall time 9ns reset input t w(rtsl) xin input t w(h) t r t f t w(l) t c www.datasheet.in
rej03b0267-0101 rev.1.01 page 96 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.2.2.3 timer a input figure 5.8 timer a input table 5.19 timer a input (counter input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 100 ns t w(tah) taiin input high pulse width 40 ns t w(tal) taiin input low pulse width 40 ns table 5.20 timer a input (gating input in timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 400 ns t w(tah) taiin input high pulse width 200 ns t w(tal) taiin input low pulse width 200 ns table 5.21 timer a input (external trigger input in one-shot timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 200 ns t w(tah) taiin input high pulse width 100 ns t w(tal) taiin input low pulse width 100 ns table 5.22 timer a input (external trigger in put in pwm mode, programmable output mode) symbol parameter standard unit min. max. t w(tah) taiin input high pulse width 100 ns t w(tal) taiin input low pulse width 100 ns taiin input taiout input t w(tah) t c(ta) t w(tal) t c(up) t w(uph) t w(upl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 97 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) figure 5.9 timer a input (two-phase pulse input in event counter mode) table 5.23 timer a input (two-phase pulse input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 800 ns t su(tain-taout) taiout input setup time 200 ns t su(taout-tain) taiin input setup time 200 ns taiin input two-phase pulse input in event counter mode taiout input t c(ta) t su(tain-taout) t su(tain-taout) t su(taout-tain) t su(taout-tain) www.datasheet.in
rej03b0267-0101 rev.1.01 page 98 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.2.2.4 timer b input figure 5.10 timer b input table 5.24 timer b input (counter input in event counter mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time (counted on one edge) 100 ns t w(tbh) tbiin input high pulse width (counted on one edge) 40 ns t w(tbl) tbiin input low pulse width (counted on one edge) 40 ns t c(tb) tbiin input cycle time (counted on both edges) 200 ns t w(tbh) tbiin input high pulse width (counted on both edges) 80 ns t w(tbl) tbiin input low pulse width (counted on both edges) 80 ns table 5.25 timer b input (pulse period measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 400 ns t w(tbh) tbiin input high pulse width 200 ns t w(tbl) tbiin input low pulse width 200 ns table 5.26 timer b input (pulse width measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 400 ns t w(tbh) tbiin input high pulse width 200 ns t w(tbl) tbiin input low pulse width 200 ns tbiin input t c(tb) t w(tbh) t w(tbl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 99 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.2.2.5 timer s input figure 5.11 timer s input (two-phase pulse input in two-phase pulse signal processing mode) table 5.27 timer s input (two-phase pulse input in two-phase pulse signal processing mode) symbol parameter standard unit min. max. t w(tsh) tsuda, tsudb input high pulse width 2 s t w(tsl) tsuda, tsudb input low pulse width 2 s t su(tsuda-tsudb) tsudb input setup time 1 s t su(tsudb-tsuda) tsuda input setup time 1 s tsuda input two-phase pulse input in two-phase pulse signal processing mode t w(tsh) t su(tsuda-tsudb) tsudb input t w(tsl) t su(tsuda-tsudb) t su(tsudb-tsuda) t su(tsudb-tsuda) t w(tsl) t w(tsh) note: 1. when the tsuda and tsudb phases are interchanged, t su(tsuda-tsudb) and t su(tsudb-tsuda) are also interchanged. www.datasheet.in
rej03b0267-0101 rev.1.01 page 100 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.2.2.6 serial interface figure 5.12 serial interface 5.2.2.7 external interrupt inti input figure 5.13 external interrupt inti input table 5.28 serial interface symbol parameter standard unit min. max. t c(ck) clki input cycle time 200 ns t w(ckh) clki input high pulse width 100 ns t w(ckl) clki input low pulse width 100 ns t d(c-q) txdi output delay time 80 ns t h(c-q) txdi hold time 0n s t su(d-c) rxdi input setup time 70 ns t h(c-d) rxdi input hold time 90 ns table 5.29 external interrupt inti input symbol parameter standard unit min. max. t w(inh) inti input high pulse width 250 ns t w(inl) inti input low pulse width 250 ns clki txdi rxdi t c(ck) t w(ckh) t w(ckl) t h(c-q) t d(c-q) t su(d-c) t h(c-d) inti input t w(inl) t w(inh) www.datasheet.in
rej03b0267-0101 rev.1.01 page 101 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.2.2.8 multi-master i 2 c-bus figure 5.14 multi-master i 2 c-bus table 5.30 multi-master i 2 c-bus symbol parameter standard clock mode high-speed clock mode unit min. max. min. max. t buf bus free time 4.7 1.3 s t hd;sta hold time in start condition 4.0 0.6 s t low hold time in scl clock 0 status 4.7 1.3 s t r scl, sda signal s? rising time 1000 20 + 0.1 cb 300 ns t hd;dat data hold time 000.9 s t high hold time in scl clock 1 status 4.0 0.6 s f f scl, sda signals? falling time 300 20 + 0.1 cb 300 ns t su;dat data setup time 250 100 ns t su;sta setup time in restart condition 4.7 0.6 s t su;sto stop condition setup time 4.0 0.6 s 6'$ 6&/ s sv 6u w /2: w +'67$ w +''7$ w +,*+ w vx'7$ w vx67$ w 5 w ) w +'67$ w vx672 w %8) www.datasheet.in
rej03b0267-0101 rev.1.01 page 102 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.2.2.9 serial bus interface note: 1. 1 t cyc is 1/f1 (s). table 5.31 serial bus interface symbol characteristic measurement condition value unit min. typ. max. t c(ssck) ssck clock cycle time 250 ns t w(ssckh) ssck clock high pulse width 0.4 0.6 t c(ssck) t w(ssckl) ssck clock low pulse width 0.4 0.6 t c(ssck) t r(ssck) ssck clock rising time master 1 t cyc (1) slave 1 s t f(ssck) ssck clock falling time master 1 t cyc (1) slave 1 s t su(ssio-ssck) sso, ssi data input setup time 100 ns t h(ssck-ssio) sso, ssi data input hold time 1 t cyc (1) t su(scs-ssck) scs setup time slave 1 t cyc + 50 (1) ns t h(ssck-scs) scs hold time slave 1 t cyc + 50 (1) ns t d(ssck-ssio) ss0, ssi data output delay time 1 t cyc (1) t en(scs-ssi) ssi output enable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns t dis(scs-ssi) ssi output disable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns www.datasheet.in
rej03b0267-0101 rev.1.01 page 103 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v figure 5.15 i/o timing of serial bus interface (master) v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos = 0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 1 v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos =0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 0 cphs, cpos: bits in the ssmr register t w(ssckh) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t f(ssck) t r(ssck) t su(ssio-ssck) t h(ssck-ssio) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) www.datasheet.in
rej03b0267-0101 rev.1.01 page 104 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v figure 5.16 i/o timing of serial bus interface (slave) v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 1 v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 0 cphs, cpos: bits in the ssmr register t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t h(ssck-scs) t dis(scs-ssi) t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t h(ssck-scs) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t dis(scs-ssi) www.datasheet.in
rej03b0267-0101 rev.1.01 page 105 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 5 v figure 5.17 i/o timing of serial bus interface (synchronous communication mode) figure 5.18 switching characteristic measurement circuit v ih or v oh ssck sso (output) ssi (input) v il or v ol t w(ssckl) t w(ssckh) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) 30 pf pin to be measured mcu www.datasheet.in
rej03b0267-0101 rev.1.01 page 106 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics 5.3 electrical character istics (j-version, v cc = 3 v) 5.3.1 electrical characteristics j-version, v cc = 3 v table 5.32 electrical characteristics (1) v cc = 3.0 to 3.6 v, v ss = 0 v at t opr = ? 40 c to 85 c, f (bclk) = 32 mhz unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. v oh high output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i oh = ? 1 ma v cc ? 0.5 v cc v v oh high output voltage xout high power i oh = ? 0.1 ma v cc ? 0.5 v cc v low power i oh = ? 50 av cc ? 0.5 v cc high output voltage xcout high power with no load applied 2.5 v low power with no load applied 1.6 v ol low output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i ol = 1ma 0.5 v v ol low output voltage xout high power i ol = 0.1ma 0.5 v low power i ol = 50 a 0.5 low output voltage xcout high power with no load applied 0 v low power with no load applied 0 v t+- v t- hysteresis ta0in to ta4in, tb0in to tb5in, int0 to int7 , nmi , adtrg , cts0 to cts3 , scl2, sda2, clk0 to clk4, ta0out to ta4out, ki0 to ki3 , rxd0 to rxd4, zp, idu, idw, idv, sd, inpc1_0 to inpc1_7, ssi0, ssck0, scs0 , lin0in, crx0, crx1 0.4v cc v v t+- v t- hysteresis reset 1.8 v v t+- v t- hysteresis xin 0.8 v i ih high input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset , cnvss v i = 3v 4.0 a i il low input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset , cnvss v i = 0v ? 4.0 a r pullup pull-up resistance p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 v i = 0v 50 100 500 k r fxin feedback resistance xin 3.0 m r fxcin feedback resistance xcin 25 m v ram ram retention voltage at stop mode 2.0 v www.datasheet.in
rej03b0267-0101 rev.1.01 page 107 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v note: 1. this indicates the memory in which the program to be executed exists. table 5.33 electrical characteristics (2) to p r = ? 40 c to 85 c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. i cc power supply current (v cc = 3.0 v to 3.6 v) in single-chip mode, the output pins are open and other pins are vss high speed mode f (bclk) = 32 mhz, xin = 8 mhz (square wave), pll multiply-by-8 125 khz on-chip oscillator operates 23 43 ma f (bclk) = 20 mhz, xin = 20 mhz (square wave), 125 khz on-chip oscillator operates 20 38 ma f (bclk) = 16 mhz, xin = 16 mhz (square wave), 125 khz on-chip oscillator operates 16 ma 40 mhz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates no division 20 38 ma main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates divide-by-8 6 ma 125 khz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates divide-by-8 fmr22 = fmr23 = 1 (low-current consumption read mode) 190 580 a low power mode f (bclk) = 32 khz on flash memory (1) fmr22 = fmr23 = 1 (low-current consumption read mode) 200 a wait mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates topr = 25 c 25 a main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 85 c 55 a stop mode t opr = 25 c 212 a t opr = 85 c 30 a during flash memory program f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 3.0 v 20.0 ma during flash memory erase f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 3.0 v 30.0 ma i det2 low voltage detection dissipation current 3 a i det0 reset area detection dissipation current 6 a www.datasheet.in
rej03b0267-0101 rev.1.01 page 108 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v 5.3.2 timing requirements (per ipheral functions and others) (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.3.2.1 reset input ( reset input) figure 5.19 reset input ( reset input) 5.3.2.2 external clock input note: 1. the condition is v cc = 3.0v. figure 5.20 external clock input (xin input) table 5.34 reset input ( reset input) symbol parameter standard unit min. max. t w(rstl) reset input low pulse width 10 s table 5.35 external clock input (xin input) (1) symbol parameter standard unit min. max. t c external clock input cycle time 50 ns t w(h) external clock input high pulse width 20 ns t w(l) external clock input low pulse width 20 ns t r external clock rise time 9ns t f external clock fall time 9ns reset input t w(rtsl) xin input t w(h) t r t f t w(l) t c www.datasheet.in
rej03b0267-0101 rev.1.01 page 109 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.3.2.3 timer a input figure 5.21 timer a input table 5.36 timer a input (counter input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 150 ns t w(tah) taiin input high pulse width 60 ns t w(tal) taiin input low pulse width 60 ns table 5.37 timer a input (gating input in timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 600 ns t w(tah) taiin input high pulse width 300 ns t w(tal) taiin input low pulse width 300 ns table 5.38 timer a input (external trigger input in one-shot timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 300 ns t w(tah) taiin input high pulse width 150 ns t w(tal) taiin input low pulse width 150 ns table 5.39 timer a input (external trigger in put in pwm mode, programmable output mode) symbol parameter standard unit min. max. t w(tah) taiin input high pulse width 150 ns t w(tal) taiin input low pulse width 150 ns taiin input taiout input t w(tah) t c(ta) t w(tal) t c(up) t w(uph) t w(upl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 110 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) figure 5.22 timer a input (two-phase pulse input in event counter mode) table 5.40 timer a input (two-phase pulse input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 2 s t su(tain-taout) taiout input setup time 500 ns t su(taout-tain) taiin input setup time 500 ns taiin input two-phase pulse input in event counter mode taiout input t c(ta) t su(tain-taout) t su(tain-taout) t su(taout-tain) t su(taout-tain) www.datasheet.in
rej03b0267-0101 rev.1.01 page 111 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.3.2.4 timer b input figure 5.23 timer b input table 5.41 timer b input (counter input in event counter mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time (counted on one edge) 150 ns t w(tbh) tbiin input high pulse width (counted on one edge) 60 ns t w(tbl) tbiin input low pulse width (counted on one edge) 60 ns t c(tb) tbiin input cycle time (counted on both edges) 300 ns t w(tbh) tbiin input high pulse width (counted on both edges) 120 ns t w(tbl) tbiin input low pulse width (counted on both edges) 120 ns table 5.42 timer b input (pulse period measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 600 ns t w(tbh) tbiin input high pulse width 300 ns t w(tbl) tbiin input low pulse width 300 ns table 5.43 timer b input (pulse width measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 600 ns t w(tbh) tbiin input high pulse width 300 ns t w(tbl) tbiin input low pulse width 300 ns tbiin input t c(tb) t w(tbh) t w(tbl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 112 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.3.2.5 timer s input figure 5.24 timer s input (two-phase pulse input in two-phase pulse signal processing mode) table 5.44 timer s input (two-phase pulse input in two-phase pulse signal processing mode) symbol parameter standard unit min. max. t w(tsh) tsuda, tsudb input high pulse width 2 s t w(tsl) tsuda, tsudb input low pulse width 2 s t su(tsuda-tsudb) tsudb input setup time 1 s t su(tsudb-tsuda) tsuda input setup time 1 s tsuda input two-phase pulse input in two-phase pulse signal processing mode t w(tsh) t su(tsuda-tsudb) tsudb input t w(tsl) t su(tsuda-tsudb) t su(tsudb-tsuda) t su(tsudb-tsuda) t w(tsl) t w(tsh) note: 1. when the tsuda and tsudb phases are interchanged, t su(tsuda-tsudb) and t su(tsudb-tsuda) are also interchanged. www.datasheet.in
rej03b0267-0101 rev.1.01 page 113 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.3.2.6 serial interface figure 5.25 serial interface 5.3.2.7 external interrupt inti input figure 5.26 external interrupt inti input table 5.45 serial interface symbol parameter standard unit min. max. t c(ck) clki input cycle time 300 ns t w(ckh) clki input high pulse width 150 ns t w(ckl) clki input low pulse width 150 ns t d(c-q) txdi output delay time 160 ns t h(c-q) txdi hold time 0n s t su(d-c) rxdi input setup time 100 ns t h(c-d) rxdi input hold time 90 ns table 5.46 external interrupt inti input symbol parameter standard unit min. max. t w(inh) inti input high pulse width 380 ns t w(inl) inti input low pulse width 380 ns clki txdi rxdi t c(ck) t w(ckh) t w(ckl) t h(c-q) t d(c-q) t su(d-c) t h(c-d) inti input t w(inl) t w(inh) www.datasheet.in
rej03b0267-0101 rev.1.01 page 114 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.3.2.8 multi-master i 2 c-bus figure 5.27 multi-master i 2 c-bus table 5.47 multi-master i 2 c-bus symbol parameter standard clock mode high-speed clock mode unit min. max. min. max. t buf bus free time 4.7 1.3 s t hd;sta hold time in start condition 4.0 0.6 s t low hold time in scl clock 0 status 4.7 1.3 s t r scl, sda signal s? rising time 1000 20 + 0.1 cb 300 ns t hd;dat data hold time 000.9 s t high hold time in scl clock 1 status 4.0 0.6 s f f scl, sda signals? falling time 300 20 + 0.1 cb 300 ns t su;dat data setup time 250 100 ns t su;sta setup time in restart condition 4.7 0.6 s t su;sto stop condition setup time 4.0 0.6 s 6'$ 6&/ s sv 6u w /2: w +'67$ w +''7$ w +,*+ w vx'7$ w vx67$ w 5 w ) w +'67$ w vx672 w %8) www.datasheet.in
rej03b0267-0101 rev.1.01 page 115 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 85 c unless otherwise specified) 5.3.2.9 serial bus interface note: 1. 1 t cyc is 1/f1 (s). table 5.48 serial bus interface symbol characteristic measurement condition value unit min. typ. max. t c(ssck) ssck clock cycle time 250 ns t w(ssckh) ssck clock high pulse width 0.4 0.6 t c(ssck) t w(ssckl) ssck clock low pulse width 0.4 0.6 t c(ssck) t r(ssck) ssck clock rising time master 1 t cyc (1) slave 1 s t f(ssck) ssck clock falling time master 1 t cyc (1) slave 1 s t su(ssio-ssck) sso, ssi data input setup time 100 ns t h(ssck-ssio) sso, ssi data input hold time 1 t cyc (1) t su(scs-ssck) scs setup time slave 1 t cyc + 50 (1) ns t h(ssck-scs) scs hold time slave 1 t cyc + 50 (1) ns t d(ssck-ssio) ss0, ssi data output delay time 1 t cyc (1) t en(scs-ssi) ssi output enable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns t dis(scs-ssi) ssi output disable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns www.datasheet.in
rej03b0267-0101 rev.1.01 page 116 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v figure 5.28 i/o timing of serial bus interface (master) v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos = 0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 1 v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos =0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 0 cphs, cpos: bits in the ssmr register t w(ssckh) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t f(ssck) t r(ssck) t su(ssio-ssck) t h(ssck-ssio) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) www.datasheet.in
rej03b0267-0101 rev.1.01 page 117 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v figure 5.29 i/o timing of serial bus interface (slave) v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 1 v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 0 cphs, cpos: bits in the ssmr register t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t h(ssck-scs) t dis(scs-ssi) t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t h(ssck-scs) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t dis(scs-ssi) www.datasheet.in
rej03b0267-0101 rev.1.01 page 118 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics j-version, v cc = 3 v figure 5.30 i/o timing of serial bus interface (synchronous communication mode) figure 5.31 switching characteristic measurement circuit v ih or v oh ssck sso (output) ssi (input) v il or v ol t w(ssckl) t w(ssckh) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) 30 pf pin to be measured mcu www.datasheet.in
rej03b0267-0101 rev.1.01 page 119 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version 5.4 electrical characteristics (k-v ersion, common to 3 v and 5 v) 5.4.1 absolute maximum rating note: 1. maximum value is 6.5 v. table 5.49 absolute maximum ratings symbol characteristic condition value unit v cc supply voltage v cc = av cc -0.3 to 6.5 v av cc analog supply voltage v cc = av cc -0.3 to 6.5 v v ref analog reference voltage ? 0.3 to v cc + 0.1 (1) v v i input voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset, cnvss, vref -0.3 to v cc + 0.3 v v o output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xout -0.3 to v cc + 0.3 v p d power consumption -40c t opr 85c 300 mw 85c < t opr 125c 250 mw t opr operating temperature range while cpu operation -40 to 125 c while flash memory program and erase operation programming area 0 to 60 data area -40 to 125 t stg storage temperature range -65 to 150 c www.datasheet.in
rej03b0267-0101 rev.1.01 page 120 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version 5.4.2 recommended operating conditions notes: 1. the mean output current is the mean value within 100ms. 2. refer to ?figure 5.1 ?main clock input oscillation frequency, pll clock oscillation frequency ?? for the relationship between main clock oscillation frequency/pll clock os cillation frequency and supply voltage. table 5.50 operating conditions (1) v cc = 3.0 v to 5.5 v, t opr = -40 c to 125 c unless otherwise specified. symbol characteristic value unit min. typ. max. v cc supply voltage 3.0 5.5 v av cc analog supply voltage v cc v v ss ground voltage 0v av ss analog ground voltage 0v v ih high level input voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 input level 0.50 v cc 0.7 v cc v cc v input level 0.70 v cc 0.85v cc v cc v xin, reset , cnvss 0.8 v cc v cc sdamm, sclmm when i 2 c-bus input level selected 0.7 v cc v cc v when smbus input level selected 2.1 v cc v v il low level input voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 input level 0.50 v cc 0 0.3 v cc v input level 0.70 v cc 0 0.45v cc v xin, reset , cnvss 0 0.2 v cc v sdamm, sclmm when i 2 c-bus input level selected 0 0.3 v cc v when smbus input level selected 0 0.8 v i oh(sum) high peak output current sum of i oh(peak) at p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 -80.0 ma i oh(peak) high level peak output current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 -10.0 ma i oh(avg) high level average output current (2) p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 -5.0 ma i ol(sum) low peak output current sum of i ol(peak) at p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 80.0 ma i ol(peak) low level peak output current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 10.0 ma i ol(avg) low level average output current (2) p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 5.0 ma f (xin) main clock input oscillation frequency (2) 02 0 m h z f (xcin) sub clock oscillation oscillator frequency 32.768 50 khz f (pll) pll clock oscillation frequency (2) 10 32 mhz f (bclk) cpu operation frequency 0 32 mhz t su(pll) wait time to stabilize p ll frequency synthesizer 1 ms www.datasheet.in
rej03b0267-0101 rev.1.01 page 121 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version figure 5.32 main clock input oscillation fr equency, pll clock oscillation frequency note: 1. the device is operationally guaranteed under these operating conditions. figure 5.33 ripple waveform table 5.51 recommended operating conditions (2/2) (1) v cc = 3.0 to 5.5 v, v ss = 0 v, and t opr = -40 c to 125 c unless otherwise specified. the ripple voltage must not exceed v r(vcc) and/or dv r(vcc) /dt. symbol parameter standard unit min. typ. max. v r(vcc) allowable ripple voltage v cc = 5.0 v 0.5 vp-p v cc = 3.0 v 0.3 vp-p dv r(vcc) /dt ripple voltage falling gradient v cc = 5.0 v 0.3 v/ms v cc = 3.0 v 0.3 v/ms maximum operating frequency [mhz] main clock input oscillation frequency pll clock oscillation frequency 20.0 10.0 0.0 32.0 10.0 0.0 maximum operating frequency [mhz] 3.0 5.5 3.0 5.5 vcc [v] (main clock: no division) vcc [v] (pll clock oscillation) 32.0 mhz 20.0 mhz f (xin) f (xin) v r( ) v cc v cc www.datasheet.in
rej03b0267-0101 rev.1.01 page 122 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version 5.4.3 a/d conversion characteristics notes: 1. use when av cc = v cc 2. flash memory rewrite disabled. except for the analog input pin, set the pins to be measured as input ports and connect them to v ss . see figure 5.34 ?a/d accuracy measure circuit?. 3. when analog input voltage is over reference voltage, the result of a/d conversion is 3ffh. figure 5.34 a/d accuracy measure circuit table 5.52 a/d conversion characteristics (1) v cc = av cc = v ref = 3.0 to 5.5 v, v ss = av ss = 0 v at t opr = -40 c to 125c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. ?? resolution v ref = v cc 10 bits i nl integral non-linearity error v ref = v cc = 5.0 v (2) 3 lsb v ref = v cc = 3.3 v (2) 5 lsb ?? absolute accuracy v ref = v cc = 5.0 v (2) 3 lsb v ref = v cc = 3.3 v (2) 5 lsb ad a/d operating clock frequency 4.0 v v cc 5.5 v 2 25 mhz 3.2 v v cc 4.0 v 2 16 mhz 3.0 v v cc 3.2 v 2 10 mhz ?? tolerance level impedance 3 k d nl differential non-linearity error (2) 1 lsb ?? offset error (4) (2) 3 lsb ?? gain error (4) (2) 3 lsb t conv 10-bit conversion time v ref = v cc = 5v, ad = 25 mhz 1.60 s t samp sampling time 0.6 s v ref reference voltage 3.0 v cc v v ia analog input voltage (3) 0v ref v an analog input an: one of the analog input pin p0 to p10: i/o pins other than an p0 to p10 www.datasheet.in
rej03b0267-0101 rev.1.01 page 123 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version 5.4.4 d/a conversion characteristics notes: 1. this applies when using one d/a converter, with the d/ a register for the unused d/a converter set to 00h. 2. the current consumption of the a/d converter is not included. also, the i vref of the d/a converter will flow even if the adstby bit in the adcon1 register is 0 (a/d operation stopped (standby)). table 5.53 d/a conversion characteristics v cc = av cc = v ref = 3.0 to 5.5 v, v ss = av ss = 0 v at t opr = -40 c to 125c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. - resolution 8bits - absolute accuracy 2.5 lsb t su setup time 3 s r o output resistance 568.2k i vref reference power supply input current see notes 1 and 2 1.5 ma www.datasheet.in
rej03b0267-0101 rev.1.01 page 124 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version 5.4.5 flash memory el ectrical characteristics notes: 1. set the pm17 bit in the pm1 register to 1 (one wait). 2. when the frequency is over this value, set the fmr17 bit in the fmr1 register to 0 (one wait) or the pm17 bit in the pm1 register to 1 (one wait) 3. set the pm17 bit in the pm1 register to 1 (one wait). no wait states are required if the 125 khz on-chip oscillator clock or sub clock is used as the clock source of the cpu clock. table 5.54 cpu clock when operating flash memory (f (bclk) ) v cc = 3.0 to 5.5 v at t opr = -40 c to 125 c, unless otherw ise specified. symbol parameter conditions standard unit min. typ. max. - cpu rewrite mode 16 (1) mhz f (slow_r) slow read mode 5 (3) mhz - low current consumption read mode fc 35 khz - data flash read 20 (2) mhz www.datasheet.in
rej03b0267-0101 rev.1.01 page 125 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version notes: 1. definition of prog ram and erase cycles: the program and erase cycles refer to the number of per-b lock erasures. if the program and erase cycles are n (n = 1,000), each block can be erased n times. for exam ple, if a 64 kbyte block is erased after writing two word data 16,384 times, each to a different address, this counts as one program and erase cycles. data cannot be written to the same address more than once wi thout erasing the block (rewrite prohibited). 2. cycles to guarantee all electrical characteristics afte r program and erase. (1 to min. value can be guaranteed). 3. in a system that executes multiple programming operations, the actual eras ure count can be reduced by writing to sequential addresses in turn so that as much of the block as possible is used up before performing an erase operation. it is advisable to retain data on the erasure cycles of each block and limit the number of erase operations to a certain number. 4. if an error occurs during block erase, attempt to execute the clear status register command, then execute the block erase command at least three times until the erase error does not occur. 5. customers desiring program/erase failure rate information should contact a renesas electronics sales office. 6. the data hold time includes time that the po wer supply is off or the clock is not supplied. 7. after an erase start or erase restart, if an interval of at least 20 ms is not set before the next suspend request, the erase sequence cannot be completed. table 5.55 flash memory (program ro m 1, 2) electrical characteristics v cc = 3.0 to 5.5 v at t opr = 0 c to 60 c, unless otherwise specified. symbol parameter conditions standard unit min. typ. max. - program/erase cycles (1, 3, 4) v cc = 3.3 v, t opr = 25 c 1,000 (2) times - two words program time v cc = 3.3 v, t opr = 25 c 150 4000 s lock bit program time v cc = 3.3 v, t opr = 25 c 70 3000 s - block erase time v cc = 3.3 v, t opr = 25 c 0.2 3.0 s t d(sr-sus) time delay from suspend request until suspend ms - interval from erase start/restart until following suspend request 0 s - suspend interval necessary for auto-erasure to complete (7) 20 ms - time from suspend until erase restart s - program, erase voltage 3.0 5.5 v - read voltage topr = -40 c to 125 c 3.0 5.5 v - program, erase temperature 0 60 c t ps flash memory circuit stabilization wait time 50 s - data hold time (6) ambient temperature = 55 c 20 year 5 3 f bclk () --------------- -+ 30 1 f bclk () --------------- -+ www.datasheet.in
rej03b0267-0101 rev.1.01 page 126 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version notes: 1. definition of pr ogram and erase cycles the program and erase cycles refer to the number of per-block erasures. if the program and erase cycles are n (n = 10,000), each block c an be erased n times. for example, if a 4 kbyte block is erased after writing two word data 1,024 times, each to a different address, this counts as one program and erase cycles. data cannot be written to the same address more than once without erasing the block (rewrite prohibited). 2. cycles to guarantee all electrical characteristics afte r program and erase. (1 to min. value can be guaranteed). 3. in a system that executes multiple programming operations, the actual eras ure count can be reduced by writing to sequential addresses in turn so that as much of the block as possible is used up before performing an erase operation. for example, when programming groups of 16 bytes, the effective number of rewrites can be minimized by programming up to 256 groups before erasi ng them all in one operation. in addition, averaging the erasure cycles between blocks a and b can further reduce th e actual erasure cycles. it is also advisable to retain data on the erasure cycles of each block and limit t he number of erase operatio ns to a certain number. 4. if an error occurs during block erase, attempt to execute the clear status register command, then execute the block erase command at least three times until the erase error does not occur. 5. customers desiring program/erase failure rate information should contact a renesas electronics sales office. 6. the data hold time includes time that the po wer supply is off or the clock is not supplied. 7. after an erase start or erase restart, if an interval of at least 20 ms is not set before the next suspend request, the erase sequence cannot be completed. table 5.56 flash memory (data flash) electrical characteristics v cc = 3.0 to 5.5 v at t opr = -40 c to 125 c, unless otherwise specified. symbol parameter conditions standard unit min. typ. max. - program/erase cycles (1, 3, 4) v cc = 3.3 v, t opr = 25 c 10,000 (2) times - two words program time v cc = 3.3 v, t opr = 25 c 300 4000 s - lock bit program time v cc = 3.3 v, t opr = 25 c 140 3000 s - block erase time v cc = 3.3 v, t opr = 25 c 0.2 3.0 s t d(sr-sus) time delay from suspend request until suspend ms - interval from erase start/restart until following suspend request 0 s - suspend interval necessary for auto-erasure to complete (7) 20 ms - time from suspend until erase restart s - program, erase voltage 3.0 5.5 v - read voltage 3.0 5.5 v - program, erase temperature ? 40 125 c t ps flash memory circuit stabilization wait time 50 s - data hold time (6) ambient temperature = 55 c 20 year 5 3 f bclk () --------------- -+ 30 1 f bclk () --------------- -+ www.datasheet.in
rej03b0267-0101 rev.1.01 page 127 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version 5.4.6 e2prom emulation data flash notes: 1. definition of program/erase cycles definition this value represents the number of erasure per block. if the flash memory is programmed/erased n times, each block can be erased n times. i.e. if a word write is performed in different 16 ad dresses in a block and then the block is erased, it is considered the programming/erasure is performed just once. however a write in the same address more than once for one erasure is disabled. (overwrite disabled). 2. the data hold time includes the periods when the supply voltage is not applied and no clock is provided. 3. this data hold time includes (3000) hours in ambient temperature = 125c. 4. please contact a renesas electronics sales office regarding data retention time other than the above. table 5.57 e 2 prom emulation data flash electrical characteristics v cc = 3.0 to 5.5 v at t opr = -40 c to 125 c, unless otherwise specified. symbol characteristic value unit min. typ. max. ? program/erase cycles (1) 100000 times ? word program time (2-byte program) 100 2000 s ? read time (2-byte read) 1 s ? block erase time (32-byte block) 15 200 ms t ps flash memory circuit stabilization wait time (sleep mode to normal mode) 35 50 s ? data hold time (2) ambient temperature = 55c (3, 4) 20 years www.datasheet.in
rej03b0267-0101 rev.1.01 page 128 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version 5.4.7 voltage detector and power supp ly circuit electrical characteristics note: 1. necessary time until the voltage detector operates when setting to 1 again after setting the vc25 bit in the vcr2 register to 0. note: 1. necessary time until the voltage detector operates after setting to 1 again after setting the vc27 bit in the vcr2 register to 0. table 5.58 voltage detector 0 electrical characteristics the measurement condition is v cc = 3.0 to 5.5 v, t opr = -40 c to 125 c, unless otherwise specified. symbol parameter condition standard unit min. typ. max. v det0 voltage detection level v det0 when v cc is falling. 2.70 2.85 3.00 v t d(e-a) waiting time until voltage detector operation starts (1) v cc = 3.0 to 5.0 v 100 s table 5.59 voltage detector 2 electrical characteristics the measurement condition is v cc = 3.0 to 5.5 v, t opr = -40 c to 125 c, unless otherwise specified. symbol parameter condition standard unit min. typ. max. vdet2_0 voltage detection level vdet2_0 when v cc is falling 3.21 v vdet2_1 voltage detection level vdet2_1 3.36 v vdet2_2 voltage detection level vdet2_2 3.51 v vdet2_3 voltage detection level vdet2_3 3.66 v vdet2_4 voltage detection level vdet2_4 3.51 3.81 4.11 v vdet2_5 voltage detection level vdet2_5 3.96 v vdet2_6 voltage detection level vdet2_6 4.10 v vdet2_7 voltage detection level vdet2_7 4.25 v - hysteresis width at the rising of v cc in voltage detector 2 0.15 v t d(e-a) waiting time until voltage detector operation starts (1) v cc = 3.0 to 5.0 v 100 s www.datasheet.in
rej03b0267-0101 rev.1.01 page 129 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version note: 1. to use the power-on reset function, enable voltage monitor 0 reset by setting the lvdas bit in the ofs1 address to 0. figure 5.35 power-on reset circ uit electrical characteristics note: 1. when v cc = 5 v. table 5.60 power-on reset circuit the measurement condition is t opr = -40 c to 125 c, unless otherwise specified. symbol parameter condition standard unit min. typ. max. t rth external power v cc rise gradient 2.0 50000 mv/ms t fth external power v cc fall gradient 50000 mv/ms v por voltage at which power-on reset enabled (1) 0.1 v t w(por) hold time at which power-on reset enabled 1.0 ms table 5.61 power supply circuit timing characteristics symbol parameter measuring condition standard unit min. typ. max. t d(p-r) time for internal power supply stabilization during powering-on vcc = 3.0 v to 5.5v 5ms t d(r-s) stop release time 300 s t d(w-s) low power mode wait mode release time 300 s vpor internal reset signal 1 f oco-s 128 external power v cc v det0 t rth t w(por) t rth v det0 1 f oco-s 128 t fth www.datasheet.in
rej03b0267-0101 rev.1.01 page 130 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version figure 5.36 power supply circuit timing diagram 5.4.8 oscillation circuit electrical characteristics table 5.62 on-chip oscillator oscillation circuit electrical characteristics v cc = 3.0 to 5.5 v, t opr = ? 40 c to 125 c, unless otherwise specified symbol characteristic value unit min. typ. max. f oco-s 125 khz on-chip oscillator oscillation frequency 100 125 150 khz f oco40m 40 khz on-chip oscillator oscillation frequency 32 40 48 mhz &38forfn 7lphwrvwdelol]hlqwhuqdovxsso\ yrowdjhgxulqjsrzhulqjrq d ,qwhuuxswwrh[lwiurpvwrsprgh e ,qwhuuxswwrh[lwiurpzdlwprgh &38forfn d e 6wrs 2shudwh 5hfrpphqghg rshudwlqj yrowdjh 9rowdjhghwhfwlrqflufxlw w  g 35 6723uhohdvhwlph w  g 56 w  g :6 /rzsrzhufrqvxpswlrq prghzdlwprghh[lwwlph 9rowdjhghwhfwlrqflufxlw rshudwlrqvwduwwlph w  g ($ w g 35 w g 56 w g :6 w g ($ vc25, vc27 v cc www.datasheet.in
rej03b0267-0101 rev.1.01 page 131 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics 5.5 electrical character istics (k-version, v cc = 5 v) 5.5.1 electrical characteristics k-version, v cc = 5 v table 5.63 electrical characteristics (1) v cc = 4.2 to 5.5 v, v ss = 0 v at t opr = ? 40 c to 125 c, f (bclk) = 32 mhz unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. v oh high output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i oh = ? 5 ma v cc? 2.0 v cc v v oh high output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i oh = ? 200 av cc? ? 0.3 v cc v v oh high output voltage xout high power i oh = ? 1 ma v cc? ? 2.0 v cc v low power i oh = ? 0.5 ma v cc? ? 2.0 v cc high output voltage xcou t high power with no load applied 2.5 v low power with no load applied 1.6 v ol low output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i ol = 5 ma 2.0 v v ol low output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i ol = 200 a 0.45 v v ol low output voltage xout high power i ol = 1 ma 2.0 v low power i ol = 0.5 ma 2.0 low output voltage xcout high power with no load applied 0 v low power with no load applied 0 v t +-v t- hysteresis ta0in to ta4in, tb0in to tb5in, int0 to int7 , nmi , adtrg , cts0 to cts3 , scl2, sda2, clk0 to clk4, ta0out to ta4out, ki0 to ki3 , rxd0 to rxd4, zp, idu, idw, idv, sd, inpc1_0 to inpc1_7, ssi0, ssck0 , scs0 , lin0in, crx0, crx1 0.2 0.4v cc v v t+ -v t- hysteresis reset 0.2 2.5 v v t+ -v t- hysteresis xin 0.2 0.8 v i ih high input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset , cnvss v i = 5 v 5.0 a i il low input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 top9_7, p10_0 to p10_7 xin, reset , cnvss v i = 0 v ? 5.0 a r pullup pull-up resistance p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 v i = 0 v 30 50 170 k r fxin feedback resistance xin 1.5 m r fxcin feedback resistance xcin 15 m v ram ram retention voltage at stop mode 2.0 v www.datasheet.in
rej03b0267-0101 rev.1.01 page 132 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v note: 1. this indicates the memory in which the program to be executed exists. table 5.64 electrical characteristics (2) t opr = ? 40 c to 125 c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. i cc power supply current (v cc = 4.2 v to 5.5 v) in single-chip mode, the output pins are open and other pins are v ss high speed mode f (bclk) = 32 mhz, xin = 8 mhz (square wave), pll multiply-by-8 125 khz on-chip oscillator operates 25 45 ma f (bclk) = 20 mhz, xin = 20 mhz (square wave), 125 khz on-chip oscillator operates 21 39 ma f (bclk) = 16 mhz, xin = 16 mhz (square wave), 125 khz on-chip oscillator operates 17 ma 40 mhz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates no division 21 39 ma main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates divide-by-8 6 ma 125 khz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates divide-by-8 fmr22 = fmr23 = 1 (low-current consumption read mode) 190 580 a low power mode f (bclk) = 32 khz on flash memory (2) fmr22 = fmr23 = 1 (low-current consumption read mode) 200 a wait mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 25 c 25 a main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 105 c 85 a main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 125 c 125 a stop mode t opr = 25 c 315 a t opr = 105 c 60 a t opr = 125 c 100 a during flash memory program f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 5.0 v 20.0 ma during flash memory erase f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 5.0 v 30.0 ma i det2 low voltage detection dissipation current 3 a i det0 reset area detection dissipation current 6 a www.datasheet.in
rej03b0267-0101 rev.1.01 page 133 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v 5.5.2 timing requirements (per ipheral functions and others) (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.5.2.1 reset input ( reset input) figure 5.37 reset input ( reset input) 5.5.2.2 external clock input note: 1. the condition is v cc = 5.0v. figure 5.38 external clock input (xin input) table 5.65 reset input ( reset input) symbol parameter standard unit min. max. t w(rstl) reset input low pulse width 10 s table 5.66 external clock input (xin input) (1) symbol parameter standard unit min. max. t c external clock input cycle time 50 ns t w(h) external clock input high pulse width 20 ns t w(l) external clock input low pulse width 20 ns t r external clock rise time 9ns t f external clock fall time 9ns reset input t w(rtsl) xin input t w(h) t r t f t w(l) t c www.datasheet.in
rej03b0267-0101 rev.1.01 page 134 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.5.2.3 timer a input figure 5.39 timer a input table 5.67 timer a input (counter input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 100 ns t w(tah) taiin input high pulse width 40 ns t w(tal) taiin input low pulse width 40 ns table 5.68 timer a input (gating input in timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 400 ns t w(tah) taiin input high pulse width 200 ns t w(tal) taiin input low pulse width 200 ns table 5.69 timer a input (external trigger input in one-shot timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 200 ns t w(tah) taiin input high pulse width 100 ns t w(tal) taiin input low pulse width 100 ns table 5.70 timer a input (external trigger in put in pwm mode, programmable output mode) symbol parameter standard unit min. max. t w(tah) taiin input high pulse width 100 ns t w(tal) taiin input low pulse width 100 ns taiin input taiout input t w(tah) t c(ta) t w(tal) t c(up) t w(uph) t w(upl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 135 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) figure 5.40 timer a input (two-phase pulse input in event counter mode) table 5.71 timer a input (two-phase pulse input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 800 ns t su(tain-taout) taiout input setup time 200 ns t su(taout-tain) taiin input setup time 200 ns taiin input two-phase pulse input in event counter mode taiout input t c(ta) t su(tain-taout) t su(tain-taout) t su(taout-tain) t su(taout-tain) www.datasheet.in
rej03b0267-0101 rev.1.01 page 136 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.5.2.4 timer b input figure 5.41 timer b input table 5.72 timer b input (counter input in event counter mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time (counted on one edge) 100 ns t w(tbh) tbiin input high pulse width (counted on one edge) 40 ns t w(tbl) tbiin input low pulse width (counted on one edge) 40 ns t c(tb) tbiin input cycle time (counted on both edges) 200 ns t w(tbh) tbiin input high pulse width (counted on both edges) 80 ns t w(tbl) tbiin input low pulse width (counted on both edges) 80 ns table 5.73 timer b input (pulse period measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 400 ns t w(tbh) tbiin input high pulse width 200 ns t w(tbl) tbiin input low pulse width 200 ns table 5.74 timer b input (pulse width measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 400 ns t w(tbh) tbiin input high pulse width 200 ns t w(tbl) tbiin input low pulse width 200 ns tbiin input t c(tb) t w(tbh) t w(tbl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 137 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.5.2.5 timer s input figure 5.42 timer s input (two-phase pulse input in two-phase pulse signal processing mode) table 5.75 timer s input (two-phase pulse input in two-phase pulse signal processing mode) symbol parameter standard unit min. max. t w(tsh) tsuda, tsudb input high pulse width 2 s t w(tsl) tsuda, tsudb input low pulse width 2 s t su(tsuda-tsudb) tsudb input setup time 1 s t su(tsudb-tsuda) tsuda input setup time 1 s tsuda input two-phase pulse input in two-phase pulse signal processing mode t w(tsh) t su(tsuda-tsudb) tsudb input t w(tsl) t su(tsuda-tsudb) t su(tsudb-tsuda) t su(tsudb-tsuda) t w(tsl) t w(tsh) note: 1. when the tsuda and tsudb phases are interchanged, t su(tsuda-tsudb) and t su(tsudb-tsuda) are also interchanged. www.datasheet.in
rej03b0267-0101 rev.1.01 page 138 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.5.2.6 serial interface figure 5.43 serial interface 5.5.2.7 external interrupt inti input figure 5.44 external interrupt inti input table 5.76 serial interface symbol parameter standard unit min. max. t c(ck) clki input cycle time 200 ns t w(ckh) clki input high pulse width 100 ns t w(ckl) clki input low pulse width 100 ns t d(c-q) txdi output delay time 80 ns t h(c-q) txdi hold time 0n s t su(d-c) rxdi input setup time 70 ns t h(c-d) rxdi input hold time 90 ns table 5.77 external interrupt inti input symbol parameter standard unit min. max. t w(inh) inti input high pulse width 250 ns t w(inl) inti input low pulse width 250 ns clki txdi rxdi t c(ck) t w(ckh) t w(ckl) t h(c-q) t d(c-q) t su(d-c) t h(c-d) inti input t w(inl) t w(inh) www.datasheet.in
rej03b0267-0101 rev.1.01 page 139 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.5.2.8 multi-master i 2 c-bus figure 5.45 multi-master i 2 c-bus table 5.78 multi-master i 2 c-bus symbol parameter standard clock mode high-speed clock mode unit min. max. min. max. t buf bus free time 4.7 1.3 s t hd;sta hold time in start condition 4.0 0.6 s t low hold time in scl clock 0 status 4.7 1.3 s t r scl, sda signals? rising time 1000 20 + 0.1 cb 300 ns t hd;dat data hold time 000.9 s t high hold time in scl clock 1 status 4.0 0.6 s f f scl, sda signals? falling time 300 20 + 0.1 cb 300 ns t su;dat data setup time 250 100 ns t su;sta setup time in restart condition 4.7 0.6 s t su;sto stop condition setup time 4.0 0.6 s 6'$ 6&/ s sv 6u w /2: w +'67$ w +''7$ w +,*+ w vx'7$ w vx67$ w 5 w ) w +'67$ w vx672 w %8) www.datasheet.in
rej03b0267-0101 rev.1.01 page 140 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v timing requirements (v cc = 5 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.5.2.9 serial bus interface note: 1. 1 t cyc is 1/f1 (s). table 5.79 serial bus interface symbol characteristic measurement condition value unit min. typ. max. t c(ssck) ssck clock cycle time 250 ns t w(ssckh) ssck clock high pulse width 0.4 0.6 t c(ssck) t w(ssckl) ssck clock low pulse width 0.4 0.6 t c(ssck) t r(ssck) ssck clock rising time master 1 t cyc (1) slave 1 s t f(ssck) ssck clock falling time master 1 t cyc (1) slave 1 s t su(ssio-ssck) sso, ssi data input setup time 100 ns t h(ssck-ssio) sso, ssi data input hold time 1 t cyc (1) t su(scs-ssck) scs setup time slave 1 t cyc + 50 (1) ns t h(ssck-scs) scs hold time slave 1 t cyc + 50 (1) ns t d(ssck-ssio) ss0, ssi data output delay time 1 t cyc (1) t en(scs-ssi) ssi output enable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns t dis(scs-ssi) ssi output disable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns www.datasheet.in
rej03b0267-0101 rev.1.01 page 141 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v figure 5.46 i/o timing of serial bus interface (master) v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos = 0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 1 v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos =0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 0 cphs, cpos: bits in the ssmr register t w(ssckh) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t f(ssck) t r(ssck) t su(ssio-ssck) t h(ssck-ssio) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) www.datasheet.in
rej03b0267-0101 rev.1.01 page 142 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v figure 5.47 i/o timing of serial bus interface (slave) v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 1 v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 0 cphs, cpos: bits in the ssmr register t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t h(ssck-scs) t dis(scs-ssi) t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t h(ssck-scs) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t dis(scs-ssi) www.datasheet.in
rej03b0267-0101 rev.1.01 page 143 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 5 v figure 5.48 i/o timing of serial bus interface (synchronous communication mode) figure 5.49 switching characteristic measurement circuit v ih or v oh ssck sso (output) ssi (input) v il or v ol t w(ssckl) t w(ssckh) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) 30 pf pin to be measured mcu www.datasheet.in
rej03b0267-0101 rev.1.01 page 144 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics 5.6 electrical character istics (k-version, v cc = 3 v) 5.6.1 electrical characteristics k-version, v cc = 3 v table 5.80 electrical characteristics (1) v cc = 3.0 to 3.6 v, v ss = 0 v at t opr = ? 40 c to 125 c, f (bclk) =32 mhz unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. v oh high output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i oh = ? 1 ma v cc ? 0.5 v cc v v oh high output voltage xout high power i oh = ? 0.1 ma v cc ? 0.5 v cc v low power i oh = ? 50 av cc ? 0.5 v cc high output voltage xcout high power with no load applied 2.5 v low power with no load applied 1.6 v ol low output voltage p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 i ol = 1ma 0.5 v v ol low output voltage xout high power i ol = 0.1ma 0.5 v low power i ol = 50 a 0.5 low output voltage xcout high power with no load applied 0 v low power with no load applied 0 v t+- v t- hysteresis ta0in to ta4in, tb0in to tb5in, int0 to int7 , nmi , adtrg , cts0 to cts3 , scl2, sda2, clk0 to clk4, ta0out to ta4out, ki0 to ki3 , rxd0 to rxd4, zp, idu, idw, idv, sd, inpc1_0 to inpc1_7, ssi0, ssck0, scs0 , lin0in, crx0, crx1 0.4v cc v v t+- v t- hysteresis reset 1.8 v v t+- v t- hysteresis xin 0.8 v i ih high input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset , cnvss v i = 3v 4.0 a i il low input current p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_7, p9_0 to p9_7, p10_0 to p10_7 xin, reset , cnvss v i = 0v ? 4.0 a r pullup pull-up resistance p0_0 to p0_7, p1_0 to p1_7, p2_0 to p2_7, p3_0 to p3_7, p4_0 to p4_7, p5_0 to p5_7, p6_0 to p6_7, p7_0 to p7_7, p8_0 to p8_4, p8_6 to p8_7, p9_0 to p9_7, p10_0 to p10_7 v i = 0v 50 100 500 k r fxin feedback resistance xin 3.0 m r fxcin feedback resistance xcin 25 m v ram ram retention voltage at stop mode 2.0 v www.datasheet.in
rej03b0267-0101 rev.1.01 page 145 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v table 5.81 electrical characteristics (2) t opr = ? 40 c to 125 c unless otherwise specified. symbol parameter measuring condition standard unit min. typ. max. i cc power supply current (v cc = 3.0 v to 3.6 v) in single-chip mode, the output pins are open and other pins are v ss high speed mode f (bclk) = 32 mhz, xin = 8 mhz (square wave), pll multiply-by-8 125 khz on-chip oscillator operates 23 43 ma f (bclk) = 20 mhz, xin = 20 mhz (square wave), 125 khz on-chip oscillator operates 20 38 ma f (bclk) = 16 mhz, xin = 16 mhz (square wave), 125 khz on-chip oscillator operates 16 ma 40 mhz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates no division 20 38 ma main clock stops 40 mhz on-chip oscillator operates 125 khz on-chip oscillator operates divide-by-8 6 ma 125 khz on-chip oscillator mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates divide-by-8 fmr22 = fmr23 = 1 (low-c urrent consumption read mode) 190 580 a low power mode f (bclk) = 32 khz on rom fmr22 = fmr23 = 1 (low-c urrent consumption read mode) 200 a wait mode main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 25 c 25 a main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 105 c 85 a main clock stops 40 mhz on-chip oscillator stops 125 khz on-chip oscillator operates peripheral clock operates t opr = 125 c 125 a stop mode t opr = 25 c 212 a t opr = 105 c 60 a t opr = 125 c 100 a during flash memory program f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 3.0 v 20.0 ma during flash memory erase f (bclk) = 10 mhz, pm17 = 1 (one wait) v cc = 3.0 v 30.0 ma i det2 low voltage detection dissipation current 3 a i det0 reset area detection dissipation current 6 a www.datasheet.in
rej03b0267-0101 rev.1.01 page 146 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v 5.6.2 timing requirements (per ipheral functions and others) (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.6.2.1 reset input ( reset input) figure 5.50 reset input ( reset input) 5.6.2.2 external clock input note: 1. the condition is v cc = 3.0v. figure 5.51 external clock input (xin input) table 5.82 reset input ( reset input) symbol parameter standard unit min. max. t w(rstl) reset input low pulse width 10 s table 5.83 external clock input (xin input) (1) symbol parameter standard unit min. max. t c external clock input cycle time 50 ns t w(h) external clock input high pulse width 20 ns t w(l) external clock input low pulse width 20 ns t r external clock rise time 9ns t f external clock fall time 9ns reset input t w(rtsl) xin input t w(h) t r t f t w(l) t c www.datasheet.in
rej03b0267-0101 rev.1.01 page 147 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.6.2.3 timer a input figure 5.52 timer a input table 5.84 timer a input (counter input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 150 ns t w(tah) taiin input high pulse width 60 ns t w(tal) taiin input low pulse width 60 ns table 5.85 timer a input (gating input in timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 600 ns t w(tah) taiin input high pulse width 300 ns t w(tal) taiin input low pulse width 300 ns table 5.86 timer a input (external trigger input in one-shot timer mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 300 ns t w(tah) taiin input high pulse width 150 ns t w(tal) taiin input low pulse width 150 ns table 5.87 timer a input (external trigger in put in pwm mode, programmable output mode) symbol parameter standard unit min. max. t w(tah) taiin input high pulse width 150 ns t w(tal) taiin input low pulse width 150 ns taiin input taiout input t w(tah) t c(ta) t w(tal) t c(up) t w(uph) t w(upl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 148 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) figure 5.53 timer a input (two-phase pulse input in event counter mode) table 5.88 timer a input (two-phase pulse input in event counter mode) symbol parameter standard unit min. max. t c(ta) taiin input cycle time 2 s t su(tain-taout) taiout input setup time 500 ns t su(taout-tain) taiin input setup time 500 ns taiin input two-phase pulse input in event counter mode taiout input t c(ta) t su(tain-taout) t su(tain-taout) t su(taout-tain) t su(taout-tain) www.datasheet.in
rej03b0267-0101 rev.1.01 page 149 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.6.2.4 timer b input figure 5.54 timer b input table 5.89 timer b input (counter input in event counter mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time (counted on one edge) 150 ns t w(tbh) tbiin input high pulse width (counted on one edge) 60 ns t w(tbl) tbiin input low pulse width (counted on one edge) 60 ns t c(tb) tbiin input cycle time (counted on both edges) 300 ns t w(tbh) tbiin input high pulse width (counted on both edges) 120 ns t w(tbl) tbiin input low pulse width (counted on both edges) 120 ns table 5.90 timer b input (pulse period measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 600 ns t w(tbh) tbiin input high pulse width 300 ns t w(tbl) tbiin input low pulse width 300 ns table 5.91 timer b input (pulse width measurement mode) symbol parameter standard unit min. max. t c(tb) tbiin input cycle time 600 ns t w(tbh) tbiin input high pulse width 300 ns t w(tbl) tbiin input low pulse width 300 ns tbiin input t c(tb) t w(tbh) t w(tbl) www.datasheet.in
rej03b0267-0101 rev.1.01 page 150 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.6.2.5 timer s input figure 5.55 timer s input (two-phase pulse input in two-phase pulse signal processing mode) table 5.92 timer s input (two-phase pulse input in two-phase pulse signal processing mode) symbol parameter standard unit min. max. t w(tsh) tsuda, tsudb input high pulse width 2 s t w(tsl) tsuda, tsudb input low pulse width 2 s t su(tsuda-tsudb) tsudb input setup time 1 s t su(tsudb-tsuda) tsuda input setup time 1 s tsuda input two-phase pulse input in two-phase pulse signal processing mode t w(tsh) t su(tsuda-tsudb) tsudb input t w(tsl) t su(tsuda-tsudb) t su(tsudb-tsuda) t su(tsudb-tsuda) t w(tsl) t w(tsh) note: 1. when the tsuda and tsudb phases are interchanged, t su(tsuda-tsudb) and t su(tsudb-tsuda) are also interchanged. www.datasheet.in
rej03b0267-0101 rev.1.01 page 151 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.6.2.6 serial interface figure 5.56 serial interface 5.6.2.7 external interrupt inti input figure 5.57 external interrupt inti input table 5.93 serial interface symbol parameter standard unit min. max. t c(ck) clki input cycle time 300 ns t w(ckh) clki input high pulse width 150 ns t w(ckl) clki input low pulse width 150 ns t d(c-q) txdi output delay time 160 ns t h(c-q) txdi hold time 0n s t su(d-c) rxdi input setup time 100 ns t h(c-d) rxdi input hold time 90 ns table 5.94 external interrupt inti input symbol parameter standard unit min. max. t w(inh) inti input high pulse width 380 ns t w(inl) inti input low pulse width 380 ns clki txdi rxdi t c(ck) t w(ckh) t w(ckl) t h(c-q) t d(c-q) t su(d-c) t h(c-d) inti input t w(inl) t w(inh) www.datasheet.in
rej03b0267-0101 rev.1.01 page 152 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.6.2.8 multi-master i 2 c-bus figure 5.58 multi-master i 2 c-bus table 5.95 multi-master i 2 c-bus symbol parameter standard clock mode high-speed clock mode unit min. max. min. max. t buf bus free time 4.7 1.3 s t hd;sta hold time in start condition 4.0 0.6 s t low hold time in scl clock 0 status 4.7 1.3 s t r scl, sda signals? rising time 1000 20 + 0.1 cb 300 ns t hd;dat data hold time 000.9 s t high hold time in scl clock 1 status 4.0 0.6 s f f scl, sda signals? falling time 300 20 + 0.1 cb 300 ns t su;dat data setup time 250 100 ns t su;sta setup time in restart condition 4.7 0.6 s t su;sto stop condition setup time 4.0 0.6 s 6'$ 6&/ s sv 6u w /2: w +'67$ w +''7$ w +,*+ w vx'7$ w vx67$ w 5 w ) w +'67$ w vx672 w %8) www.datasheet.in
rej03b0267-0101 rev.1.01 page 153 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v timing requirements (v cc = 3 v, v ss = 0 v, at t opr = ? 40 c to 125 c unless otherwise specified) 5.6.2.9 serial bus interface note: 1. 1 t cyc is 1/f1 (s). table 5.96 serial bus interface symbol characteristic measurement condition value unit min. typ. max. t c(ssck) ssck clock cycle time 250 ns t w(ssckh) ssck clock high pulse width 0.4 0.6 t c(ssck) t w(ssckl) ssck clock low pulse width 0.4 0.6 t c(ssck) t r(ssck) ssck clock rising time master 1 t cyc (1) slave 1 s t f(ssck) ssck clock falling time master 1 t cyc (1) slave 1 s t su(ssio-ssck) sso, ssi data input setup time 100 ns t h(ssck-ssio) sso, ssi data input hold time 1 t cyc (1) t su(scs-ssck) scs setup time slave 1 t cyc + 50 (1) ns t h(ssck-scs) scs hold time slave 1 t cyc + 50 (1) ns t d(ssck-ssio) ss0, ssi data output delay time 1 t cyc (1) t en(scs-ssi) ssi output enable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns t dis(scs-ssi) ssi output disable time 3.0 v v cc 5.5 v 1.5 t cyc + 100 (1) ns www.datasheet.in
rej03b0267-0101 rev.1.01 page 154 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v figure 5.59 i/o timing of serial bus interface (master) v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos = 0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 1 v ih or v oh v il or v ol scs (output) ssck (output) (cpos = 1) ssck (output) (cpos =0) sso (output) ssi (input) 4-wire bus communication mode, master, cphs = 0 cphs, cpos: bits in the ssmr register t w(ssckh) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t f(ssck) t r(ssck) t su(ssio-ssck) t h(ssck-ssio) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) www.datasheet.in
rej03b0267-0101 rev.1.01 page 155 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v figure 5.60 i/o timing of serial bus interface (slave) v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 1 v ih or v oh v il or v ol scs (input) ssck (input) (cpos = 1) ssck (input) (cpos = 0) sso (input) ssi (output) 4-wire bus communication mode, slave, cphs = 0 cphs, cpos: bits in the ssmr register t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t h(ssck-scs) t dis(scs-ssi) t su(scs-ssck) t w(ssckh) t f(ssck) t r(ssck) t h(ssck-scs) t w(ssckl) t w(ssckh) t w(ssckl) t c(ssck) t su(ssio-ssck) t h(ssck-ssio) t en(scs-ssi) t d(ssck-ssio) t dis(scs-ssi) www.datasheet.in
rej03b0267-0101 rev.1.01 page 156 of 156 jul 23, 2010 m16c/5m group, m16c/57 group 5. electrical characteristics k-version, v cc = 3 v figure 5.61 i/o timing of serial bus interface (synchronous communication mode) figure 5.62 switching characteristic measurement circuit v ih or v oh ssck sso (output) ssi (input) v il or v ol t w(ssckl) t w(ssckh) t c(ssck) t d(ssck-ssio) t su(ssio-ssck) t h(ssck-ssio) 30 pf pin to be measured mcu www.datasheet.in
a- 1 revision history m16c/5m group datasheet rev. date description page summary 1.01 jul 23, 2010 ? first edition issued all trademarks and registered trademarks are the property of their respective owners. www.datasheet.in
general precautions in the handling of mpu/mcu products the following usage notes are applicable to all mpu/mcu products from renesas. for detailed usage notes on the products covered by this manual, refer to the rele vant sections of the manu al. if the descriptions under general precautions in the handling of mpu/mcu products and in the body of the manual differ from each other, the description in the bod y of the manual takes precedence. 1. handling of unused pins handle unused pins in accord with the directions given under handling of unused pins in the manual. ? the input pins of cmos products are general ly in the high-impedance state. in operation with an unused pin in the open-circuit state, extra electromagnetic noise is induced in the vicinity of lsi, an associated shoot-through current flows internally, and malfunctions occur due to the false recognition of the pin state as an input signal become possible. unused pins should be handled as described under handling of unused pins in the manual. 2. processing at power-on the state of the product is undefined at the moment when power is supplied. ? the states of internal circuits in the lsi are indeterminate and the states of register settings and pins are undefined at the moment when power is supplied. in a finished product where the reset signal is applied to the external reset pin, the states of pins are not guaranteed from the moment when power is supplied until the reset process is completed. in a similar way, the states of pins in a pr oduct that is reset by an on-chip power-on reset function are not guaranteed from the moment when power is supplied until the power reaches the level at which resetting has been specified. 3. prohibition of access to reserved addresses access to reserved addresses is prohibited. ? the reserved addresses are provided for the po ssible future expansion of functions. do not access these addresses; the correct operat ion of lsi is not guaranteed if they are accessed. 4. clock signals after applying a reset, only release the reset line after the operating clock signal has become stable. when switching the clock signal during pr ogram execution, wait until the target clock signal has stabilized. ? when the clock signal is generated with an external resonator (or from an external oscillator) during a reset, ensure that the reset li ne is only released after full stabilization of the clock signal. moreover, when switching to a clock signal produced with an external resonator (or by an external oscillator) while program execution is in progress, wait until the target clock signal is stable. 5. differences between products before changing from one product to another, i.e. to one with a different part number, confirm that the change will not lead to problems. ? the characteristics of mpu/mcu in the same group but having different part numbers may differ because of the differences in internal memory capacity and layout pattern. when changing to products of different part numbe rs, implement a system-evaluation test for each of the products. www.datasheet.in
notice 1. all information included in this document is current as of the date this document is issued. such information, however, is subject to change without any prior notice. before purchasing or using any renesas electronics products listed herein, please confirm the latest product information with a renesas electronics sales office. also, please pay regular and careful attention to additional and different information to be disclosed by renesas electronics such as that disclosed through our website. 2. renesas electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights of third parties by or arising from the use of renesas electronics products or technical information described in this document. no license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of renesas electronics or others. 3. you should not alter, modify, copy, or otherwise misappropriate any renesas electronics product, whether in whole or in part. 4. descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples. you are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. renesas electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information. 5. when exporting the products or technology described in this document, you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations. you should not use renesas electronics products or the technology described in this document for any purpose relating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. renesas electronics products and technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. 6. renesas electronics has used reasonable care in preparing the information included in this document, but renesas electronics does not warrant that such information is error free. renesas electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein. 7. renesas electronics products are classified according to the following three quality grades: "standard", "high quality", and "specific". the recommended applications for each renesas electronics product depends on the product's quality grade, as indicated below. you must check the quality grade of each renesas electronics product before using it in a particular application. you may not use any renesas electronics product for any application categorized as "specific" without the prior written consent of renesas electronics. further, you may not use any renesas electronics product for any application for which it is not intended without the prior written consent of renesas electronics. renesas electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any renesas electronics product for an application categorized as "specific" or for which the product is not intended where you have failed to obtain the prior written consent of renesas electronics. the quality grade of each renesas electronics product is "standard" unless otherwise expressly specified in a renesas electronics data sheets or data books, etc. "standard": computers; office equipment; communications equipment; test and measurement equipment; audio and visual equipment ; home electronic appliances; machine tools; personal electronic equipment; and industrial robots. "high quality": transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-crime systems; safety equipment; and medical equipment not specifically designed for life support. "specific": aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct thr eat to human life. 8. you should use the renesas electronics products described in this document within the range specified by renesas electronics, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. renesas electronics shall have no liability for malfunctions or damages arising out of the use of renesas electronics products beyond such specified ranges. 9. although renesas electronics endeavors to improve the quality and reliability of its products, semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. further, renesas electronics products are not subject to radiation resistance design. please be sure to implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a renesas electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you. 10. please contact a renesas electronics sales office for details as to environmental matters such as the environmental compatibility of each renesas electronics product. please use renesas electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the eu rohs directive. renesas electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations. 11. this document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of renes as electronics. 12. please contact a renesas electronics sales office if you have any questions regarding the information contained in this document or renesas electronics products, or if you have any other inquiries. (note 1) "renesas electronics" as used in this document means renesas electronics corporation and also includes its majority-o wned subsidiaries. (note 2) "renesas electronics product(s)" means any product developed or manufactured by or for renesas electronics. http://www.renesas.com refer to "http://www.renesas.com/" for the latest and detailed information. renesas electronics america inc. 2880 scott boulevard santa clara, ca 95050-2554, u.s.a. tel: +1-408-588-6000, fax: +1-408-588-6130 renesas electronics canada limited 1101 nicholson road, newmarket, ontario l3y 9c3, canada tel: +1-905-898-5441, fax: +1-905-898-3220 renesas electronics europe limited dukes meadow, millboard road, bourne end, buckinghamshire, sl8 5fh, u.k tel: +44-1628-585-100, fax: +44-1628-585-900 renesas electronics europe gmbh arcadiastrasse 10, 40472 dsseldorf, germany tel: +49-211-65030, fax: +49-211-6503-1327 renesas electronics (china) co., ltd. 7th floor, quantum plaza, no.27 zhichunlu haidian district, beijing 100083, p.r.china tel: +86-10-8235-1155, fax: +86-10-8235-7679 renesas electronics (shanghai) co., ltd. unit 204, 205, azia center, no.1233 lujiazui ring rd., pudong district, shanghai 200120, china tel: +86-21-5877-1818, fax: +86-21-6887-7858 / -7898 renesas electronics hong kong limited unit 1601-1613, 16/f., tower 2, grand century place, 193 prince edward road west, mongkok, kowloon, hong kong tel: +852-2886-9318, fax: +852 2886-9022/9044 renesas electronics taiwan co., ltd. 7f, no. 363 fu shing north road taipei, taiwan tel: +886-2-8175-9600, fax: +886 2-8175-9670 renesas electronics singapore pte. ltd. 1 harbourfront avenue, #06-10, keppel bay tower, singapore 098632 tel: +65-6213-0200, fax: +65-6278-8001 renesas electronics malaysia sdn.bhd. unit 906, block b, menara amcorp, amcorp trade centre, no. 18, jln persiaran barat, 46050 petaling jaya, selangor darul ehsan, malaysia tel: +60-3-7955-9390, fax: +60-3-7955-9510 renesas electronics korea co., ltd. 11f., samik lavied' or bldg., 720-2 yeoksam-dong, kangnam-ku, seoul 135-080, korea tel: +82-2-558-3737, fax: +82-2-558-5141 sales offices ? 2010 renesas electronics corporation. all rights reserved. colophon 1.0 www.datasheet.in


▲Up To Search▲   

 
Price & Availability of M16C5M

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X